I create instance of the MyCcomponentContainer
:
var factory = this.resolver.resolveComponentFactory(MyComponentContainer);
The template of MyComponentContainer:
<div #container class="myclass"><ng-content></ng-content></div>
Can I now change/edit/add something to this template after creating the component dynamically? For example I would like to add html that will replace the <ng-content>
.
I'm looking for a way to replace ng-content with some HTML.