valor-software / ng2-tree

Angular tree component
http://valor-software.com/ng2-tree/index.html
MIT License
348 stars 190 forks source link

Get this issue: Can't resolve all parameters for NodeDraggableDirective #302

Open rahulbabuumg opened 6 years ago

rahulbabuumg commented 6 years ago

I get the below error when I load the ng2-tree latest version. Tried installing and re-installing the package but no luck. I am using Angular 2. Does ng2-tree work on Angular 2 version?

__zone_symbol__error: Error: Can't resolve all parameters for NodeDraggableDirective: ([object Object], [object Object], ?)

yuinii1215 commented 5 years ago

It seems that the NodeDraggableDirective uses renderer2, which is the api that can only be used above angular4, so it will get an error. In the project of angular2, I can display it normally by using ng2-tree with version 1.0.0. You can have a try. I hope this can help you.