@NgModule({
declaration: [...],
imports: [.., HeaderModule.forRoot({headerConfig: myHeaderConfig, ...})],
providers: [...],
bootstrap: [AppComponent]
})
This is how my app.module file is looking. I have to call a service to load myHeaderConfig values but till the time I receive service response, bootstraping of app is done without any header config. Is there any way to bootstrap app after a service call or any other idea? Any suggestion will be helpful.