angular 2中的动态HTML编译

angular 2中的动态HTML编译,angular,Angular,我有一个基本组件,我想在其中加载动态控制(组件) 下面是我想要动态加载到另一个组件中的控件 "<mo-text-control-component></mo-text-control-component>" “” 使用ComponentFactoryResolver和entryComponents这里有很多描述它的答案,请参见示例。thanx@yurzui,gunter

我有一个基本组件,我想在其中加载动态控制(组件)

下面是我想要动态加载到另一个组件中的控件

"<mo-text-control-component></mo-text-control-component>"
“”

使用
ComponentFactoryResolver
entryComponents
这里有很多描述它的答案,请参见示例。thanx@yurzui,gunter