javascript - remove item in ng-repeat using particular id -
assume got id, correct way of removing item of list? don't think because doesn't work. tried:
$scope.postitem.splice(id, 1);
my partial html , js here http://jsfiddle.net/jk7rb/
i don't understand $index method, post_id instead. it's easier because can straight away remove item id in backend.
Comments
Post a Comment