Ng4- Remove item from Array - indetails object as one item [object, object]
---------------------------------------------------------------
Filter the selected data
removeArrayItem(objectitem){
this.totalArrayData = this.totalArrayData.filter(item => item.Id !== objectitem.id);
console.log( this.totalArrayData)
}
---------------------------------------------------------------
Filter the selected data
removeArrayItem(objectitem){
this.totalArrayData = this.totalArrayData.filter(item => item.Id !== objectitem.id);
console.log( this.totalArrayData)
}
No comments:
Post a Comment