In my main component's ngOnInit I do get some global settings :
ngOnInit() {
this._service1.initGlobalData()
this._service2.initGlobalData2()
}
these 2 calls initialize _service1 and _service2 which are then used in several different places in my app. I would like to be sure these 2 calls are done before starting rendering my application.
Is there any specific way to do it in Angular 2 ?
The only solution that comes up to my mind would be to set a spinner up based on the promises returned by these two init calls.