How can I inject template component inside a component


#1

How can I use a reference for Angular templates in separate components?

I mean, to inject template component inside a component like ngTemplateOutlet does referencing it.

I’ve been trying to do the same in NS + Angular templates bug I’m see nothing in the screen. (blank screen)

I think Angular does it using <ng-container *ngTemplateOutlet="rooms"></ng-container>

https://angular.io/api/common/NgTemplateOutlet


#2

I didn’t remember that I can make it using a <app-my-selector></app-my-selector> directive and inject a component inside another.