typescript - 未找到 NgbModalBackdrop 的组件工厂。你把它添加到@NgModule.entryComponents 了吗?即使我将 enteryComponent 添加到我的模块
问题描述
我正在创建一个除应用程序模块之外的角度模块并在其中添加一个enterycomponent“ManageLocationComponent”,但它仍然在控制台中显示相同的错误这是我的代码
`@NgModule({
imports: [CommonModule, AngularMaterialModule, ReactiveFormsModule],
declarations: [AdminManageLocationComponent, ManageLocationComponent],
exports: [AdminManageLocationComponent, ManageLocationComponent],
entryComponents: [ManageLocationComponent]
})`
任何帮助
解决方案
如果你仍然有这个问题,我通过NgbModule
在 NgModule 中添加到我的导入数组来修复它。同样是的,您还需要看起来已经拥有的 entryComponents。
推荐阅读
- c - 如果我将 NULL 传递给此函数,我该如何处理?在 C 中释放链表
- logstash - Logstash python脚本执行
- ios - 相机应用程序在使用离子/电容器的 iOS 应用程序中冻结
- sql - 实体框架核心用户、团队、想法中的多对多关系
- javascript - Firestore:文档中的引用数组到具有对象数组的对象(AngularFire)
- angular - 在获取索引的同时迭代 FormArray
- python - for循环,一些符号存在,但另一些不存在
- html - 如何将css应用于div类中的li以显示块?
- python - GPU 上的 Pytorch 转换,在大输入数据上是否值得?
- jupyter-notebook - 键盘快捷键在我的 Jupyter Notebook 中不起作用!(b键,m键...)