Angular can't recurse. Not without hacks, at least. So using data 
structures in the form of a tree is impossible.

I've already complained about/explored the issue in my GitHub issue 
<https://github.com/angular/angular.js/issues/8536>, so I'm going to ask 
about technical help and things here.
First off, the function at line 916 of /src/ng/compile.js (compileNodes) is 
clearly the offender here. When compiling directives, this function will 
read a string and compile the nodes inside it recursively. However, when 
inside a compiling a directive that includes/transcludes itself, it will 
compile that directive over and over again instead of actually yielding a 
tree.
Second, what is the best approach for solving this issue? My stance is that 
we could defer compilation for recursive nodes until they need to be 
rendered to the DOM.

--Rob

-- 
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