[Vuejs]-Vue.js Todo task with CSS animation and transition effect

0👍

Here is the part about the sleep effect. You can use setTimeout and use the bind function to make sure the this context inside it is the Vue component.

this.loading = true;

setTimeout((function(){ 

    this.editedTask = null;

    this.editKey = '';

    this.loading = false; 

}).bind(this), 3000);

Leave a comment