Hi Sander,
Thanks for this very intersting article. I read it carefully and if I did not miss anything it is about dynamic components and dynamically choosen templates.
What I would like to do is not very far but is with dynamic html (pure html without angular directive) around a dynamic component.
In a parent template I would like to insert dynamic html (not a template) and inside a dynamic component.
I am able to inject dynamic html before and after the dymanic component with someting like this:
<div [innerHtml]='firstHTML'> </div>
<dynamic-compoent [context]="someData"></dynamic-context>
<div [innerHtml]='secondHtml'></div>
But with that approach I am not able to produce a result like this:
<div class="foo">
[the created instance of dynamic component]
</div>
Where the div is the dynamic html which could be replaced by something else at runtime.
I can only produce this kind of result :
<div class="foo"> (..) </div>
[the created instance of dynamic component]
Regards,
Arnaud.