Hi, i am calling a webservice which returns data in JSON format. I store this into a variable called*myrecipes* and show these through rg-repeat in a grid. This works fine! I have bound the database field to the checkbox through ng-model. This works, too. Now my requirement:
I could call a webservice function to update the current item in the database through ng-change. When the call is successfull the model gets updated and the value in the database is updated, too. Everything fine! BUT what if something goes wrong when i try to update the value in the database through the webservice? The model (the local data) is getting updated but the value in the database not! That may not happen! How can i prevent this? How could i perhaps catch a single item which was triggered through the ng-change and set the value in the model back to the previous value? -- 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.
