loadComponentTest() {
for (let i = 0; i < this.listTemplates.length; i++) {
const factory = this.resolver.resolveComponentFactory(this.listTemplates[i].Component);
this.componentRef = this.entry.createComponent(factory);
}
}
在这里使用resolveComponentFactory()方法时,我正在传递Type Component的componet项,但出现错误。