1

I am problem with Angular2 to integration with CMS. I need to compile the HTML in run time (JIT) and transform it to a template-component. Is there any way to configure the component-template to some reference in the dom?

All this because my CMS generates the HTML dynamic and i cant compile the html this in build.

The problem is similiar to this case, but in angular2: How to use string retrieved from back-end as template in Angular2?

Community
  • 1
  • 1
  • 2
    http://stackoverflow.com/questions/34784778/equivalent-of-compile-in-angular-2/37044960#37044960 or http://stackoverflow.com/questions/38888008/how-can-i-use-create-dynamic-template-to-compile-dynamic-component-with-angular/38888009#38888009 – Günter Zöchbauer Apr 11 '17 at 13:36
  • Hello Gunter, thanks for your attetion. I do not know if I was clear. For example, i have this snippet code in my doom:
    {{text}}
    – Pedrinho Aoki Apr 17 '17 at 17:32
  • Possible duplicate of [Equivalent of $compile in Angular 2](https://stackoverflow.com/questions/34784778/equivalent-of-compile-in-angular-2) – Anthropic Jul 22 '17 at 09:50
  • This should be a fundamental feature in Angular 2+ but unfortunately, in the name of performance, it lost the main feature. – user1892203 Oct 02 '17 at 05:31

0 Answers0