[Vuejs]-Vue.js – How to delete selected row by delete button in tbody?

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)

Leave a comment