I´m using AngularJS 1.1.3 to use the new $resource with promises...
How can I get the callback from that? I tried the same way I did with $http :
$re
Two ways
var resource = $resource(""); resource.$promise.then(function(data){ // do stuff success }, function(error){ //do stuff error });
Other way
var resource = $resource(""); resource({}, function success(data){ //do stuff }, function error(error){ //do stuff }