0
Eclipse keeps telling the error on $http.delete, when other methods (like $http.put, $http.post) are not. What could it be? For example, $http.put:
updateUser: function(user, id){
return $http.put('http://localhost:8090/Spring4MVCAngularJSExample/user/'+id, user)
.then(
function(response){
return response.data;
},
function(errResponse){
console.error('Error while updating user');
return $q.reject(errResponse);
}
);
}
And now, $http.delete
deleteUser: function(id){
return $http.delete('http://localhost:8090/Spring4MVCAngularJSExample/user/'+id)
.then(
function(response){
return response.data;
},
function(errResponse){
console.error('Error while deleting user');
return $q.reject(errResponse);
}
);
}
Thanks for the help!
How about asking the question in Portuguese?
– danguilherme