I have a simple array of string items bound to a bunch of text fields in 
the view. Using the the text fields and some buttons on the view I can add, 
remove and edit these items. I want to update another component in another 
part of the application based on changes to these items. Sharing the model 
is not an option, so I have to do the updates by watching model changes. 
And here is the part of angular that I don't understand...
When I watch for changes in the model I don't receive the item that has 
changed but the new and old versions of the whole list. This isn't just 
very expensive but also completely useless to me. For me to determine what 
event to send to the other component I have to iterate over the new and old 
lists and find out what has changed. This means a whole lot of string 
comparisons, which should be needless as the framework at some point knew 
what is being changed and could have indicated it in the event.
So the question is: Is there some other way to listen for model changes I'm 
not aware of? Am I missing something here? (angular seems like a mature fw 
and this seems like a big omission so I'm hoping that I am missing 
something)

Thanks for taking the time to enlighten me ;)

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