ng2-tree icon indicating copy to clipboard operation
ng2-tree copied to clipboard

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

Open rahulbabuumg opened this issue 5 years ago • 1 comments

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], ?)

rahulbabuumg avatar Sep 15 '18 12:09 rahulbabuumg

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.

yuinii1215 avatar Dec 29 '18 05:12 yuinii1215