Hi Tom,
the recursive approach produces a more complex dom-structure (compare the rendered dom tree of the two approaches to see what I mean)
1.) {{node.name}} will get wrapped with a <span> element by ng to conform to valid html
2.) all leaf nodes produce unneeded empty <ul></ul> tags, since the abort condition of the recursion follows within
guess, the creation and the rendering of the more complex structure could explain some of the performance difference.
Andy
--
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 angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.
.t