Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

$compile + ngRepeat + replace templates (fix #2151) #2155

Closed

Conversation

IgorMinar
Copy link
Contributor

Closes #2151

@IgorMinar
Copy link
Contributor Author

I only have tests that fail with infinite loop (async templates) or stack overflow (sync templates) right now.

need help with the fix

@ghost ghost assigned mhevery Mar 14, 2013
@mhevery
Copy link
Contributor

mhevery commented Mar 14, 2013

@petebacondarwin
Copy link
Member

@mhevery - what happened to your fixes branch?

@petebacondarwin
Copy link
Member

This is still failing in master: http://plnkr.co/edit/nfshYfXyJGvFUczqRSk1?p=preview

@petebacondarwin
Copy link
Member

This has been addressed at 15e1a29

IgorMinar added a commit to IgorMinar/angular.js that referenced this pull request Jul 3, 2013
Previously if a template contained a directive that had a template
(sync or async) and the directive template was to replace the original
element and the directive template contained another directive on the
root element of this template and this new directive was an element
transclude directive then an infinite recursion would follow because
the compiler kept on re-adding and reapplying the original directive
to the replaced node.

This change fixes that.

Closes angular#2155
IgorMinar added a commit that referenced this pull request Jul 3, 2013
Previously if a template contained a directive that had a template
(sync or async) and the directive template was to replace the original
element and the directive template contained another directive on the
root element of this template and this new directive was an element
transclude directive then an infinite recursion would follow because
the compiler kept on re-adding and reapplying the original directive
to the replaced node.

This change fixes that.

Closes #2155
ctrahey pushed a commit to ctrahey/angular.js that referenced this pull request Jul 22, 2013
Previously if a template contained a directive that had a template
(sync or async) and the directive template was to replace the original
element and the directive template contained another directive on the
root element of this template and this new directive was an element
transclude directive then an infinite recursion would follow because
the compiler kept on re-adding and reapplying the original directive
to the replaced node.

This change fixes that.

Closes angular#2155
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng-repeat doesn't work if template is included by templateUrl
3 participants