I have data array like :
But I can not delete 1 element with splice like:
remove (index) {
this.todos.splice(index, 1)
}
I found a way
JSON.parse(JSON.stringify(todos))
and it is okey when I need to read data, but how to make splice ?
Thanks!
You need use some like this (manual):
vm.items.splice(indexOfItem, 1, newValue)