#Component Communication
2 messages · Page 1 of 1 (latest)
2 messages · Page 1 of 1 (latest)
I have a component structure as shown in the image. What I want is to create a WindowComponent in ScreenComponent when click event occurs in AppComponent with @HostListener.
What I can't do here is how to transfer from AppComponent to ScreenComponent. I tried using ViewContainerRef with ng-template but I couldn't.