Credit to devdocs.io

angular 2.0_typescript

angular

resolveForwardRef

Experimental Function

Class Export

export resolveForwardRef(type: any) : any

Lazily retrieves the reference value from a forwardRef.

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

Example (live demo)

let ref = forwardRef(() => 'refValue');
expect(resolveForwardRef(ref)).toEqual('refValue');
expect(resolveForwardRef('regularValue')).toEqual('regularValue');

See: forwardRef

exported from @angular/core/index defined in @angular/core/src/di/forward_ref.ts

© 2010–2016 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/core/index/resolveForwardRef-function.html