ng2-tree
ng2-tree copied to clipboard
Facing Exactly the same problem, in Angular2, can someone help in fixing it.
Can't bind to 'tree' since it isn't a known property of 'tree'. (" <tree [ERROR ->][tree]="tree"> "): TreeViewComponent@1:10 'tree' is not a known element:
Originally posted by @ghost in https://github.com/valor-software/ng2-tree/issues/13#issuecomment-259887947
Did you import this ng2-tree in your app.module.ts ? I got this error when i forgot to add the import in that file.
You can also import the tree into the module of the component you want to use. In this case, you would remove it from the application module.