angular Meterial错误 Did you add it to @NgModule.entryComponents
来源:互联网 发布:恋爱循环mmd相机数据 编辑:程序博客网 时间:2024/05/01 05:56
在使用 MatDialogModule,引用dialog组件显示的时候报了如下错误:
RROR Error: No component factory found for DeleteDialogComponent. Did you add it to @NgModule.entryComponents?
官方的例子2个组件是写一起的,不牵扯到引用的问题。
最后查明原因,需要在 @NgModule 中加入:
@NgModule( //... entryComponents: [YourDialogComponent] //...)
阅读全文
0 0
- angular Meterial错误 Did you add it to @NgModule.entryComponents
- did you forget to add stdafx.h problem
- Unable to find the socket transport 'ssl' - did you forget to enable it when you configured
- VS2005,Did you forget to add '#include "stdafx.h"' to your source?
- VS2005,Did you forget to add '#include "stdafx.h"' to your source?
- VS2005,Did you forget to add '#include "stdafx.h"' to your source?
- VS2005,Did you forget to add '#include "stdafx.h"' to your source?
- Did you forget to add '#include "stdafx.h"' to your source?
- Multiple substitutions specified in non-positional format; did you mean to add the formatted="false"
- Multiple substitutions specified in non-positional format; did you mean to add the formatted="false"
- Could not load codec 'Lucene54'. Did you forget to add lucene-backward-codecs.jar?
- Multiple substitutions specified in non-positional format;did you mean to add the formatted="false"
- file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it 的解决
- Unable to find the socket transport 'ssl' - did you forget to enable it when you configured PHP?
- WTL出现GUID错误 Did you forget to pass the LIBID to CComModule::Init?
- WTL出现GUID错误 Did you forget to pass the LIBID to CComModule::Init?
- Warning: fopen() [function.fopen]: Unable to find the wrapper “https” – did you forget to enable it
- 【错误处理】Angular报错:ERROR in MessageDetailComponent is not an NgModule
- 一、ElasticSearch5.6.3下载安装步骤 说明:ElasticSearch的运行不能用root执行,自己用useradd命令新建一个用户如下所示: sueradd chen passw
- Sublime text配置前端代码(JavaScript/Html/CSS)校验工具
- python opencv 获取图片的宽 高 深度
- 文本不换行white-space: nowrap;
- 谷歌浏览器如何如何禁用弹出窗口阻止程序
- angular Meterial错误 Did you add it to @NgModule.entryComponents
- Python----__repr__用于显示给开发人员
- 10个最佳的大数据处理编程语言
- 海滩上有一堆桃子,5只猴子来分.
- ajax的一些问题
- Wordpress主题制作经验
- java.util.concurrent学习之 Executor
- 全栈工程师培训材料
- emacs启动报错:找不到init.el