I am fetching part of the page from some service. How can I achieve that angular expression or router staff working as dynamic content?
Controller.ts
variable = 'some text';
dynamicContent ='
{{variable}}
Or
<a [routerLink]="contact"]></a>';
View.html
<div>
{{dynamicContent}}//plain text
<div [innerHtml]="dynamicContent"></div> //html without angular expressions
</div>
So innerHtml is close. It can build html but cannot understand angular 2 expressions. I found out ng-dynamic module but it also undesrstand only html. The best solution atm is html outlet that i found on some stack questions. But it is not supporting AOT...