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

Dirty data on recursive ng-repeat with ng-include on 1.2 RC2 #3909

Closed
dipold opened this issue Sep 6, 2013 · 6 comments
Closed

Dirty data on recursive ng-repeat with ng-include on 1.2 RC2 #3909

dipold opened this issue Sep 6, 2013 · 6 comments

Comments

@dipold
Copy link

dipold commented Sep 6, 2013

I have a recursive ng-repeat that works on 1.1.5 and no more works in 1.2RC2.

Basically when I changed $scope.menu, the menu show the old and new data.

Live example demonstrating the problem:
http://jsfiddle.net/cc8zJ/1/

Gives to consider this an issue?
I appreciate any suggestion

@petebacondarwin
Copy link
Contributor

This looks like a regression to me.

@doorman02
Copy link

+1 for this

@xrg
Copy link

xrg commented Sep 11, 2013

Same issue here. When re-ordering items in the list, duplicate ones still appear at old positions

@ofpiyush
Copy link

I tried adding tracking but that doesn't fix it either.

http://jsfiddle.net/cc8zJ/2/

@IgorMinar
Copy link
Contributor

It's not possible to use ngRepeat on the same element as ngInclude any more, this was a tough choice we had to make in order to make using animations easier.

see aa2133a

@IgorMinar
Copy link
Contributor

recommended solution is to use ngInclude in a child element of the ngRepeat element

<div ng-repeat="...">
  <div ng-include="..."></div>
</div>

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

No branches or pull requests

7 participants