[Vuejs]-Computed property is not updating value in v-text-field after execution

2👍

You could set a watcher on your property and then update the value for the v-text-field inside it.

<v-col cols="12" sm="12" md="4" lg="4" xl="4">
  <label>Value depending on Toggled Button</label><br />
  <v-text-field
    v-model="backendprop.prop2"
    type="text"
    disabled
    outlined
    dense
  />
</v-col>

watch: {
    'backendprop.prop1'(value){
        this.backendprop.prop2 = value.toString() === '2' ? 'Valid prop' : ''
    }
}

Leave a comment