I ended up creating https://github.com/dotJEM/angular-tree my self.

I actually started as a reaction to something similar to your directive 
(https://github.com/stackfull/angular-tree-repeat), yet somewhat simpler, 
but obviously I wanted to try to make things even more elegant. And as a 
side effect of that I ended up being able to allow the developer to use 
ng-repeat, as is... and then using 'dx-start-with' and 'dx-connect' 
directives around that.

<ul dx-start-with="rootNode">
  <li ng-repeat="node in $dxPrior.nodes">
    {{ node.name }}
    <ul dx-connect="node"/>
  </li></ul>


And from my own point of view, I have yet to see a solution as simple as 
that... It mimics the idea of the "ng-include" approach, but without the 
need for a separate file or script block... So even more clean (IMO)...

I feel that the idea of having things like  "frangTreeDrop" / 
"frangTreeDrop" is one of the bigger over-complications, we can easily 
separate the idea of drag and drop out into generic "ng-drag" and "ng-drop" 
directives and just use those... Separating concerns and making smaller and 
much more focused directives.

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to