Closed jean-merelis closed 7 years ago
Huh? That property is added to the promise..? Is the promise being sent back to the server?
I use with $resource, and $resource is sending it. Example
//html: <div cg-busy="busypromisse">...</div>
//first I get a entity with $resource
$scope.busypromisse = Org.get({id: $routeParams.id},
function (entity) {
$scope.entity = entity;
}, function (err) {
console.log('error')
});
//So, when I save changes, $resource send that property too.
$scope.save = function () {
$scope.busypromisse = $scope.entity.$save(
function (entity) {
$scope.entity = entity;
},
function (err) {
console.log('an error');
});
};
The issue still persists! Would be nice to get a fix!
$cgBusyFulfilled property should be renamed to $$cgBusyFulfilled. This way, it is stripped by $resource when sending json to the server.