I'm trying to build an editor which will work on custom html pages. So I need to load in my Angular custom html code.
I'm desperately seeking a way to load a component with a different TemplateUrl each time.
I tried to look at ComponentFactoryResolver
or at ngComponentOutlet
but in vain.
I also tried to do it with innerHtml
but my custom code in it wasn't compiled by Angular, so that's mean that no directive wouldn't be binded.
Does anyone have a solution ?
I'm using the latest version of Angular (4).