Reputation: 41
Is there a way to use content projection in dynamically loaded & created Angular 2 components? By dynamic loading & creation i mean components aren't known at compilation time, they will be loaded & compiled & instantiated in run time.
Upvotes: 1
Views: 1585
Reputation: 657118
You pass them as projectableNodes
to ViewContainerRef.createComponent()
Upvotes: 1