I am trying to dynamically insert a component into custom modal window component
my modal component receives a URL to a html file with a component inside:
<a modal bodyUrl="/some/path/body.html">
body.html:
<hello-component></hello-component>
I am loading body.html's content into the modal's DOM via http and inserting it into the template via htmlBinding attribute.
However, my component won't render. Is there a way to force to re-rendering? Or something like that?
Thank you for your help!
Update 1:
Both answers below gave me an idea to pass a component type as an Input of a modal and use DynamicComponentLoader to bootstrap a component
Here is plunk with concept: