0

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

  • Maybe this will help you https://stackoverflow.com/questions/70946038/replace-deprecated-angular-componentfactoryresolver-componentfactory – Nikita Mar 13 '23 at 19:08

0 Answers0