I need to handle error callback of an update operation, for this i'm using method save()
like this:
$scope.save = function (params) {
MigParams.save(params);
};
Migparams
service look like this:
angular.module('monitor').
factory('MigParams', function ($resource) {
return $resource('/restful/migparams');
});
This code works great but i need to know if an error occurs in database. I have searched in google but i didn't find this particular case. Is there a way of get this?. Thanks in advance