[Vuejs]-How to reset v-bind after submit?

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"

0👍

Clear the variable you have bound

clear () {
    this.field = "";
}

Leave a comment