-
Notifications
You must be signed in to change notification settings - Fork 27.5k
ngAnimate throws errors (leaves stale items) for ngRepeat with nested ngInclude #4716
Comments
If it is a comment though, couldn't it be something from |
Yes, ng-repeat uses comments heavily but it's not the problem. I have an ng-repeat on its own elsewhere and obviously it works -- or it would have been reported already :-). For me ng-include leaves comments like this:
Having that within the repeater, on the same div, confuses ngAnimation. It's the fix I submitted, you need to get the next element to have the actual ng-included item. (It's my first bug report / fix here, I hope I'm making sense.) |
Can you provide a plunkr please? I responded to an issue earlier today which may be related to this. |
http://plnkr.co/edit/sVhmdeqsVx3XfiNCbtS8 Sorry for the delay, it took a bit of time to set up a minimal example. Click on the button and watch the console for the exception. EDIT: There were two bugs I had to fix in RC3 to get it working, but in the trunk of AngularJS you already fixed one. You may have to use that fix and the latest code to get to the second -- posted above. |
What is the other bug? The comment exception one was fixed with: b9557b0 |
The other bug is fixed by my diff above. |
OK cool. I see what's going on. I'm working on a bigger commit so I'll add that one in. |
…ansclusion Closes angular#4716 Closes angular#4871 Closes angular#5021 Closes angular#5278
…ansclusion Closes angular#4716 Closes angular#4871 Closes angular#5021 Closes angular#5278
…ansclusion Closes angular#4716 Closes angular#4871 Closes angular#5021 Closes angular#5278
The title describes the bug well enough I think, and here's my local hack to fix it:
If this looks sensible to you let me know and I can submit a pull request. If not, let me know ;-)
Alex
The text was updated successfully, but these errors were encountered: