You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to delete some post and see error
I separate factory for posts with this code
.factory('postService', [ '$resource', function($resource) {
return $resource('/posts/:id', null, {
'update': { method:'PUT' }
});
}]);
and in another controller i try to delete some post with this code
I try to delete some post and see error
I separate factory for posts with this code
.factory('postService', [ '$resource', function($resource) {
return $resource('/posts/:id', null, {
'update': { method:'PUT' }
});
}]);
and in another controller i try to delete some post with this code
$scope.deletePost = function(post){
postService.delete(post);
}
In view this
Delete Current Post
In chrome console i see 404 error. In putty see this http://ipic.su/img/img7/fs/kiss_1kb.1445717737.png
What i am doing wrong? :(
The text was updated successfully, but these errors were encountered: