Restangular Delete From List After Remove() Not Working
i've been trying to work with Restangular, but there are some issues i'm running into. i'm not sure if its the implementation of Restangular, or my lack of understanding, but i ca
Solution 1:
I had that problem too.
this worked on my code:
$scope.deletePost = function(item){
item.remove().then(function(results){
$scope.posts.$object.splice($scope.posts.$object.indexOf(item),1);
});
}
Post a Comment for "Restangular Delete From List After Remove() Not Working"