tchatel / angular-treeRepeat

Recursive repeater for AngularJS
Do What The F*ck You Want To Public License
115 stars 16 forks source link

Allow to drop in the root collection #8

Closed lionelB closed 10 years ago

lionelB commented 10 years ago

Actually, there is no way to drag an element in the root collection. Once an element is a children of another node, it's impossible to move this node at the root level.

couzic commented 10 years ago

If I remember well, I handled this problem by wrapping the root level inside another array. In my case I had only a single root node, the solution looked like this in my template

<li frang-tree-repeat="node in [myRootNode]">

Hope it helps !

lionelB commented 10 years ago

Nice thanks you!