Skip to content

Add an example with computed getter/setter to the 'Using v-model with components' section #133

@NataliaTepluhina

Description

@NataliaTepluhina

We have a great example of v-model + computed getter/setter usage on Vuex docs. It would be nice to show similar example when using v-model on the component and on underlying input

computed: {
  message: {
    get () {
      return this.modelValue
    },
    set (value) {
      this.$emit('update:modelValue', value)
    }
  }
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions