Equivalent of $compile in Angular 2

后端 未结 9 999
名媛妹妹
名媛妹妹 2020-11-21 06:50

I want to manually compile some HTML containing directives. What is the equivalent of $compile in Angular 2?

For example, in Angular 1, I could dynamic

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-21 07:13

    You can see the component, that allow to compile simple dynamic Angular components https://www.npmjs.com/package/@codehint-ng/html-compiler

提交回复
热议问题