Questions tagged «angular-webpack-starter»

23
角4:找不到组件工厂,您是否将其添加到@ NgModule.entryComponents?
我正在将Angular 4模板与webpack一起使用,当我尝试使用组件(ConfirmComponent)时出现此错误: 找不到用于ConfirmComponent的组件工厂。您是否将其添加到@ NgModule.entryComponents? 该组件在中声明 app.module.server.ts @NgModule({ bootstrap: [ AppComponent ], imports: [ // ... ], entryComponents: [ ConfirmComponent, ], }) export class AppModule { } 我也有 app.module.browser.ts和app.module.shared.ts 我该如何解决?
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.