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.

using jquery

use remove method this:

$('#your_id').remove(); 

Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -