Dear sander, 
Kos Prov has written at the end of his first answer that "you have to 
re-write it using isolated scopes and *real* 2-way binding" to solve it. I 
have rewritten it using isolated scopes and real 2 way binding as he 
suggested but it still doesn't work. Even Kos Prov has tried to solve it 
using two way binding and isolated scopes but didn't have much luck. 

Here is the updated code:- 

http://plnkr.co/edit/DzKIHKvJdLoZiYY3jgDx?p=preview

It will be a great help if you can have a look at it. 

Thanks for quick reply. 

Pankaj Kumar Sharma

On Tuesday, June 24, 2014 1:10:55 PM UTC+5:30, pankaj sharma wrote:
>
> If I use "track by $index" with ng-repeat, it doesn't update view even if 
> associated object has been changed.
>
> Steps to reproduce: 1) Click remove button on first grid, you will see 
> that in place of first, second grid gets removed. While json data of 
> appliedgrid contains second grid inside it. So two way binding of angular 
> doesn't work as it supposed to.
>
> http://plnkr.co/edit/DzKIHKvJdLoZiYY3jgDx?p=preview
>
> More details about the issue are given in following link:- 
>
> https://github.com/angular/angular.js/issues/7953
>
> http://stackoverflow.com/questions/24301883/angularjs-buggy-two-way-data-binding/24312024#24312024
>  
> <http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F24301883%2Fangularjs-buggy-two-way-data-binding%2F24312024%2324312024&sa=D&sntz=1&usg=AFQjCNGqr4K2nHrb_okPkuLPUoPnYfhyow>
>

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