I am kinda new to Angular JS, and am trying to figure out a elegant
solution to watch each object in a array for its property changes.
I know the way to deep watch an array is by:
$scope.$watch("collection",function( newValue, oldValue ) {
/* do something*/
}, true );
But the newValue, oldValue doesn't give away exactly which object in the array
has changed.
Other way I can think of is to loop the array and set a watch on each object in
the array.
Is there a better solution to this?
--
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.