材料角度:sidenav组件,md-sidenave

时间:2017-09-04 09:44:49

标签: angular angular-material

未捕获错误:模板解析错误: md-sidenav不是已知元素: 1.如果md-sidenav是Angular组件,请验证它是否为此模块的一部分。 2.如果md-sidenav是Web组件,则将CUSTOM_ELEMENTS_SCHEMA添加到此组件的@NgModule.schemas以禁止显示此消息。

("<md-sidenav-container class="example-container">
  [ERROR ->]<md-sidenav #sidenav class="example-sidenav">
    Jolly good!
  </md-sidenav>
"): ng:///SharedModule/SidenavComponent.html@1:2
'md-sidenav-container' is not a known element:
1. If 'md-sidenav-container' is an Angular component, then verify that it is part of this module.
2. If 'md-sidenav-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("[ERROR ->]<md-sidenav-container class="example-container">
  <md-sidenav #sidenav class="example-sidenav">
    "): ng:///SharedModule/SidenavComponent.html@0:0

0 个答案:

没有答案