ng2-tree: Can't bind to 'tree' since it isn't a known property of 'tree'. ("
Can't bind to 'tree' since it isn't a known property of 'tree'. ("
<tree [ERROR ->][tree]="tree"></tree>
"): HomeComponent@1:9
'tree' is not a known element:
1. If 'tree' is an Angular component, then verify that it is part of this module.
2. If 'tree' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("
[ERROR ->]<tree [tree]="tree"></tree>
"): HomeComponent@1:3 ; Zone: <root> ; Task: Promise.then ; Value: Error: Template parse errors:(…) Error: Template parse errors:
Can't bind to 'tree' since it isn't a known property of 'tree'. ("
<tree [ERROR ->][tree]="tree"></tree>
"): HomeComponent@1:9
'tree' is not a known element:
1. If 'tree' is an Angular component, then verify that it is part of this module.
2. If 'tree' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message. ("
[ERROR ->]<tree [tree]="tree"></tree>
"): HomeComponent@1:3
According to the tutorial in the readme, cannot normal use, the demoIn the code is dependent on the development kit, independence should do a simple example, it is easier to use
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (6 by maintainers)
Hi … You need to add this in your app.module.ts
import { TreeModule } from ‘ng2-tree’;
imports: [ … , TreeModule , …]
Hope that helps You.
Hi, Developers. There is no any solution for this issues. I think that everyone in here is not real and loyal developer. Selfish one.