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 :
$resource.get('...').
success(function(data, status) {
alert(data);
}).
error(function(data, status) {
alert((status);
});
But there is no 'success' neither 'error' functions...
I also tried that :
$resource.get({ id: 10 },function (data) {
console.log('success, got data: ', data);
}, function (err) {
alert('request failed');
});
That always print "success, got data" even if the return is a 404 ...
Any idea?
Thanks