Using the resources of Tastypie and AngularJS $, I would like to perform a set of update, create and delete operations.
I am currently broadcasting an event:
$rootScope.$broadcast('save');
This event is captured by each controller responsible for creating, updating, and deleting using the $resource service:
ResourceService.update({id:$scope.id}, $scope.element).$promise.then(function(element) { $scope.$emit('saved'); });
Now this causes some race conditions both on the client side and on the server side.
What would be the easiest way to perform this set of operations as a package in REST mode?
source share