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 i
Instead of a template, pass the string to $compile to create a DOM element: https://docs.angularjs.org/api/ng/service/$compile
$compile