Is there any lifecycle hook, which tells you if all the content is loaded? I'm having a site, which has several asynchronously working ponents. So the ponents are not ready at the same time. To avoid a strange appearance of the site, I'd like to put a kind of loading banner in place. But obviously, I need to know when I can disable the banner again.
Thanks for any suggestions or idea!
Is there any lifecycle hook, which tells you if all the content is loaded? I'm having a site, which has several asynchronously working ponents. So the ponents are not ready at the same time. To avoid a strange appearance of the site, I'd like to put a kind of loading banner in place. But obviously, I need to know when I can disable the banner again.
Thanks for any suggestions or idea!
Share Improve this question edited Feb 22, 2017 at 17:05 Claies 22.3k4 gold badges55 silver badges80 bronze badges asked Feb 22, 2017 at 17:01 tschaka1904tschaka1904 1,4993 gold badges20 silver badges45 bronze badges1 Answer
Reset to default 8ngAfterViewInit()
of the AppComponent
See also https://angular.io/docs/ts/latest/api/core/index/AfterContentInit-class.html
This won't cover ponents added by the router or non-Angular libraries.