lacolaco / ng-dynamic

dynamic contents projection in Angular

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ng-content select..... ng-dynamic vs component-outlet

demiro opened this issue · comments

Hi,

I am successfully using the component outlet...but I stumbled upon a problem....ng-content works fine even with nested "dynamic" components.... but does not...

I wanted to report the bug there but saw it was discontinued...

My question is..doea it work with this one? I have all working with the old one and am not too keen to refactor to the new one if it still doeant work...

Anyways, awesome work... opens completely a new dimension

Thanks for reporting.

I want to see your code. Could you share it?

I think the question is can you nest the either of the dynamic components. If not I'll gladly open my own issue but my understanding is given params like the following :

some_template = `<p>Hi there</p>`;
template = `<div *dymanicComponent="some_template"></div>`;

And a template as below.

`<div *dymanicComponent="template"></div>`

I would expect it to render the following :

<p>Hi there</p>

However there currently doesn't seem to be a way of nesting these components.