Is it even possible to programmatically render components inside host component?
The viewContainerRef.createComponent
appends component next to the component, whereas I need to add it inside of the host directive.
I have solution with ComponentFactoryResolver
, but it will be removed in Angular 16, so not really an option.
Angular documentation does not give any clue on how to do that - only states that ComponentFactoryResolver
is not needed anymore, but what to do instead - not a single word.
Tried to search across SO and Angular docs