0👍
You either use passed todo.id
or pass an event itself in addition to todo.id
:
@change="updateActive($event, todo.id)"
updateActive: function (e, todoId){
...
}
Source:stackexchange.com
0👍
You either use passed todo.id
or pass an event itself in addition to todo.id
:
@change="updateActive($event, todo.id)"
updateActive: function (e, todoId){
...
}