angular Meterial错误 Did you add it to @NgModule.entryComponents
在使用 MatDialogModule,引用dialog组件显示的时候报了如下错误:
RROR Error: No component factory found for DeleteDialogComponent. Did you add it to @NgModule.entryComponents?
官方的例子2个组件是写一起的,不牵扯到引用的问题。
最后查明原因,需要在 @NgModule 中加入:
@NgModule(//...entryComponents: [YourDialogComponent]//...
)
angular Meterial错误 Did you add it to @NgModule.entryComponents相关推荐
- AlertDialog显示错误 Unable to add window token null is not for an application
在listView的onItemClick函数中显示一个AlertDialog,出现如下错误 08-07 21:26:43.506: ERROR/AndroidRuntime(9390): andro ...
- Angular路由错误消息 - router-outlet is not a known element
我在application Component的HTML里定义了一个router-outlet元素: 遇到错误消息: router-outlet is not a known element 查看其定 ...
- Git 提交报错,账户和密码错误 和 git add/git commit 文件太大太多
问题1: Git 提交报错,账户和密码错误 重新使用git进行作业提交 问题2: 源码太大文件太多,失败 git add . git commit idea push操作 问题3:git push 报 ...
- angular.js 错误: Error [$injector:unpr] 原因
错误提示如下图: 造成原因:注入名称有问题,检查是否为拼写错误. 实例: 本人学习中遇到,如有其他原因希望在文章下面评论,本人证实后会放入文章之中,并注明提供者信息.
- Mysql错误1452 - Cannot add or update a child row: a foreign key constraint fails 怎么办?
删除要成为外键的列. 再次创建它 尝试再次将其设置为外键.
- Mysql错误1452 - Cannot add or update a child row: a foreign key constraint fails 原因及解决方法
报错的原因大概分为三种: 原因一: 添加的外键列与另一个表的唯一索引列(一般是主键)的数据类型不同 原因二: 要添加外键的表类型与另一个表的存储引擎是不是都为innodb引擎 #查看表引擎 法一: s ...
- ERROR in : Cannot determine the module for class xxxx Add to the NgModule to fix it.
原文链接:这里 0.前言 angular项目打包的时候遇到这个问题,大概意思是我的一个component组件没有加到NgModule里面去. 1.解决办法 打开你的项目文件,找到下面这两个文件, 一般 ...
- 4 5区别 angular 和_Angular 常见问题解答
--------------------Image from tanaka_tatsuya on Instagram----------------------------- ng6, TypeErr ...
- Houdini15 VOP Add Attribute参数传递错误,使用Bind Export替代
Houdini13 VOP SOP Add Attribute Note传递参数是正确的 Houdini15 Attribute VOP Add Attribute Note传递的参数是错误的 ...
- angular面试题及答案_关于最流行的Angular问题的StackOverflow上的48个答案
angular面试题及答案 by Shlomi Levi 通过Shlomi Levi 关于最流行的Angular问题的StackOverflow上的48个答案 (48 answers on Stack ...
最新文章
- JS window.open()属性
- 如何选购晨检机器人_扫地机器人好不好用?如何选购?答案在这
- Python编程基础:第三节 字符串方法String Methods
- POJ - 2528 Mayor's posters(线段数+离散化)
- delphi7存取配置文件与sqlserver数据库连接_SQL Server基础知识概念要点详细讲解
- java.lang.NumberFormatException: null
- OSL LLVM 3.3 Related Changes
- 【短语学习】out of the box的含义和翻译
- Linux下安装mysql(CentOS7)
- MySQL视图,触发器,事务,存储过程,函数
- Mysql:如何使用limit
- MacOS Big Sur 11.3 (20E232) Cl 5133/OC 0.6.9/PE 三分区原版黑苹果镜像
- java完成crm系统ppt,客户关系管理系统答辩稿.ppt
- PHP多国语言开发:CodeIgniter 2PHP框架中的多国语言,语言包(i18n)库
- iNFTnews|Opensea上爆火的Art Gobblers为何引起巨大争议?
- GAPP添加overlay
- python 删除word 某一章节_聊聊python 办公自动化之 Word(中)
- Kaggle无法出现人机验证的解决办法
- java基于微信小程序的在线作业提交批改系统 uniapp 小程序
- 基于JMF录制和播放视频源码