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.




Le mercredi 20 septembre 2017 12:33:10 UTC+2, Sander Elias a écrit :
>
> Hi Arnoud,
>
> This article 
> <https://juristr.com/blog/2017/07/ng2-dynamic-tab-component/>from 
> my friend Juri, might help you along. It will provide you with most of the 
> needed building block. This also works with AOT.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to