1

Resolved

AngularJS Objects Update Failure

description

Updates of an AngularJS object fail.

Example Code:

HTML:
<li ng-repeat="item in items">
<button ng-click="update(item)">Update</button>
</li>

AngularJS Controller:
...
$scope.edit = function(item) {
AzureMobileServices.update("itemTableName", item).then(function() { ... });

}

AngularJS adds a $$hash variable to the 'item' object in the above example code. When this object is passed to Azure the $$hash field does not exist and an update exception is thrown.

comments

dmcwee wrote Jul 21, 2014 at 3:29 PM

Current recommended fix is to "extract" the values that should be sent to the Azure Services as a "clean" object rather than using the AngularJS object.

dmcwee wrote Jul 25, 2014 at 3:25 AM

Close as of version 1.0.2