resolveForwardRef

export resolveForwardRef(type: any) : any

exported from angular2/core defined in angular2/src/core/di/forward_ref.ts (line 27)

Lazily retrieves the reference value from a forwardRef.

Acts as the identity function when given a non-forward-ref value.

Example (live demo)

var ref = forwardRef(() => "refValue"); expect(resolveForwardRef(ref)).toEqual("refValue"); expect(resolveForwardRef("regularValue")).toEqual("regularValue");

See: forwardRef