Uncaught Error: Template parse errors: 'md-input-container' is not a known
来源:2-5 Input 组件

魏铭轩
2017-09-04
Uncaught Error: Template parse errors:
'md-input-container' is not a known element:
1. If 'md-input-container' is an Angular component, then verify that it is part of this module.
2. If 'md-input-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
写回答
3回答
-
dds813
2017-09-22
SharedModule中是否有导入导出MdInputModule
00 -
接灰的电子产品
2017-09-04
你安装版本不对,执行以下步骤
npm uninstall --save @angular/material @angular/cdk npm install --save @angular/material@2.0.0-beta.7
022017-09-22 -
魏铭轩
提问者
2017-09-04
SharedModule中导入MdInputModule
00
Angular打造企业级协作平台,让你在Angular领域中出类拔萃
全网首个介绍官方 Material 组件库用法与 Redux 在 Angular 中的应用
998 学习 · 536 问题
相似问题