Thank you for the reply! I find it very difficult to get responses and good information with Angular questions (much harder than common JavaScript or jQuery stuff).
So the reason for this is, I have 2 controllers, one that grabs a data object from the service and fills a list, and the other controller has to display that same data editable, and as the user changes, it should change in the list as well. So would you agree, this would be the "best practice" way to handle this ? Thanks again Andre! On Wednesday, June 25, 2014 4:40:58 PM UTC-4, André Farzat wrote: > > The problem is that you're not referencing the object property in the > ng-model, you're referencing the primitive `this.name`.This way, > ng-repeat and ng-model's point to different variables/properties. > > I forked your fiddle and added a $watch to make it work: > http://jsfiddle.net/andrefarzat/z3D5H/1/ > > Hope this helps. > > On Wednesday, June 25, 2014 3:54:55 PM UTC-3, Chris wrote: >> >> fiddle example: http://jsfiddle.net/squirrelradio/LZEbT/ > > -- 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.
