[Vuejs]-Vue @change should update database

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){
...
}

Leave a comment