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);
- [Vuejs]-How to make the delay when a user check on Vue.js?
- [Vuejs]-How to disable v-if compilation caching when condition is truthy again?
Source:stackexchange.com