In an Angular2 app, I'd like to use ajax to retrieve a html tag string from back-end and use it as template in Angular2.
// The str I get from server by ajax is:
var str = "<my-hero [hero]=\"hero\"></my-hero>"
When the app is already running in the browser. If I $('myHeroParent').append(str). This code won't work.
How can you make this work? Is it called dynamic loading component?