0👍
In your example you are not binding the variable to any specific attribute.
The syntax v-bind
is simply the long form of :
.
It needs a suffix to denote the attribute.
For example v-bind:value="field"
to bind to the value.
In shorthand you would write this as just :value="field"
- [Vuejs]-Why my icon don't change when i'm clicking on ? (ionic/vue/ts)
- [Vuejs]-ASP.NET SPA with VueJS: only serving certain routes/files based on authorization
0👍
Clear the variable you have bound
clear () {
this.field = "";
}
Source:stackexchange.com