dimanche 13 décembre 2020

Vue @change should update database

I'm creating a todolist and trying to make my checkbox change a property both in vue and in my DB. The checkbox should change the active status to true if box is checked, and to false if set to unchecked.

Vue HTML the v-model change the "active" property. @change should call the function

The function. if the checkbox is changed from check to uncheck, change the active status to false, vice versa

Express to update the task

Property being created in addTodo

Thanks for you help




Aucun commentaire:

Enregistrer un commentaire