I have an Angular 5 app which just renders a component
export class AppComponent {
@ViewChild(TestComponent) testElement: Testcomponent;
}
But this child component needs some infos (e.g. there is config for additional created subcomponents)
The config is loaded from an external source (rest), so i have created an http.get request and wrapped it in an rxjs Observable
In my AppComponent I have therefor a Observable<string> where i can subscribe to.
My TestComponent basically is not able to show anything before the config is available - so my question is how I can wait with the initialization/rendering of the component until the Rest-Response is available?