Angular ng-sidebar错误

时间:2018-02-13 13:08:23

标签: angular plugins webpack

我为 angular 5 ng-sidebar 安装了新插件,并完成了所有步骤,但它在文档和Click This for seeing error. <中显示的效果不佳/ p>

 Failed: Template parse errors:
Can't bind to 'opened' since it isn't a known property of 'ng-sidebar'.
1. If 'opened' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.
2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component. ("

  <!-- A sidebar -->
  <ng-sidebar [ERROR ->][(opened)]="_opened">
    <p>Sidebar contents</p>
  </ng-sidebar>
"): ng:///DynamicTestModule/AppComponent.html@4:14
'ng-sidebar' is not a known element:
1. If 'ng-sidebar' is an Angular component, then verify that it is part of this module.
2. If 'ng-sidebar' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("

  <!-- A sidebar -->
  [ERROR ->]<ng-sidebar [(opened)]="_opened">
    <p>Sidebar contents</p>
  </ng-sidebar>
"): ng:///DynamicTestModule/AppComponent.html@4:2
'ng-sidebar-container' is not a known element:
1. If 'ng-sidebar-container' is an Angular component, then verify that it is part of this module.
2. If 'ng-sidebar-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
[ERROR ->]<ng-sidebar-container>

  <!-- A sidebar -->
"): ng:///DynamicTestModule/AppComponent.html@1:0`enter code here`

0 个答案:

没有答案