mat-input-container' is not a known element
来源:2-5 Input 组件

慕函数4001562
2019-10-24
老师我安装的是angular8版本,可能有些api和课程中不一样,我在login中添加了mat-input-container 浏览器报错,
Uncaught Error: Template parse errors:
‘mat-input-container’ is not a known element:
- If ‘mat-input-container’ is an Angular component, then verify that it is part of this module.
- If ‘mat-input-container’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message. ("
[ERROR ->]
</mat-in"): ng:///LoginModule/LoginComponent.html@5:8
’mat-card-action’ is not a known element: - If ‘mat-card-action’ is an Angular component, then verify that it is part of this module.
- If ‘mat-card-action’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message. ("
[ERROR ->]还没有账号?注册
忘记密码?找回
"): ng:///LoginModule/LoginComponent.html@9:4
请问怎么解决。
写回答
1回答
-
material 相关的组件看官网,也可以参考git源码,https://github.com/wpcfan/taskmgr
012019-10-24
Angular打造企业级协作平台,让你在Angular领域中出类拔萃
全网首个介绍官方 Material 组件库用法与 Redux 在 Angular 中的应用
998 学习 · 536 问题
相似问题