In Angular 1.x, we could insert HTML in real-time by using the HTML tag
$sce.trustAsHTML(). This got us 80% of th way there, but wouldn't work when Angular tags were used, such as if you inserted HTML that used
ng-repeat or custom directives.
To get that to work, we could use a custom directive that called $compile.
What is the equivalent for all of this in Angular 2? We can bind using
[inner-html] but this only works for very simple HTML tags such as
<b>. It doesn't transform custom angular 2 directives into functioning HTML elements. (Much like Angular 1.x without the
$compile step.) What is the equivalent of
$compile for Angular 2?