As far as I can see in your html code, you have a variable $scope.posts.results.
ng-repeat provides each element with a variable $indexthat you can use to remove the element
add this $indexto your html:
ng-click="delete(post, $index)"
And then, in your controller, remove the element from your array
$scope.delete = function($posts, postIndex) {
$http.delete('/api/posts/' + $posts._id)
.success(function(data) {
$scope.posts.results.splice(postIndex, 1);
});
};
ng-repeat node DOM. DOM.