0👍
I got it: the model itself must be hooked up into vue to be reactive. It works calling the vue-function ‘reactive’ on my dao.
import { reactive } from 'vue';
export default reactive({
todos: [
{
text: 'yadda yadda',
checked: false,
},
{
text: 'clean up',
checked: true,
},
],
getAll() {
return this.todos;
},
deleteTodo(todo) {
let elementToDelete = this.todos.find((element) => element.text == todo.text);
this.todos.splice(this.todos.indexOf(elementToDelete, 1));
},
});
- [Vuejs]-Are VS Code Dev Container typically slow when developing with Vuejs
- [Vuejs]-The image url is not passing as a parameter in axios to api
Source:stackexchange.com