Angular 2 equivalent of ng-bind-html, $sce.trustAsHTML(), and $compile?

In Angular2 you should use DynamicComponentLoader to insert some “compiled content” on the page. So for example if you want to compile next html: <div> <p>Common HTML tag</p> <angular2-component>Some angular2 component</angular2-component> </div> then you need to create component with this html as a template (let’s call it CompiledComponent) and use DynamicComponentLoader to insert this component … Read more