valor-software / ng2-tree

Angular tree component

Home Page:http://valor-software.com/ng2-tree/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Facing Exactly the same problem, in Angular2, can someone help in fixing it.

xdw898618984 opened this issue · comments

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 #13 (comment)

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.