I want to pass an @Input to an angular component, like this:
<some-component [childComponent]="'<child-component><child-component>'"><some-component>
Because I want to reuse the code of some-component and the @Input value will be dynamic so each time I can pass a new child component inside some-component. The child-component will be rendered inside some-component.
How can I achieve this?
Thanks for help.