3👍
✅
I think you are not using splice
properly. Your method should be:
deleteRow(index:any) {
this.users.splice(index, 1);
}
1👍
You’re misusing splice
with the parameters start as index and the second parameter for the deletes count:
this.users.splice(index,1)
Source:stackexchange.com