0👍
You should set inviteResponse = ''
somewhere in your code in order to hide your message. So that v-if
statement becomes false
.
For example, in your callback function after receiving server response you can
if (this.inviteResponse) {
setTimeout(function() { this.inviteResponse = '' }, 3000);
}
- [Vuejs]-Vue.js – Computed property is not triggered when data is changing
- [Vuejs]-VueJS data initialization for non existent objects
Source:stackexchange.com