Angular2 @Input from async pipe - availability in ngOnInit

Viewed 11650

On one blog I've read that:

The ngOnInit lifecycle hook is a guarantee that your bindings are readily available.

Is it true also with parameters passed using async pipe? For example:

<myComponent [myInput]="myObservableVariable | async">
 ...
</myComponent>

Will component wait for the variable to be resolved before starting up ngOnInit?

That would mean that sometimes, when data will take a while to resolve, component loading could take a long time.

3 Answers
Related