Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NataliaTepluhina opened this issue Jul 5, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@NataliaTepluhina
Copy link
Member

NataliaTepluhina commented Jul 5, 2020

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)
    }
  }
}
@NataliaTepluhina NataliaTepluhina added the enhancement New feature or request label Jul 5, 2020
@NataliaTepluhina NataliaTepluhina added this to the release milestone Jul 5, 2020
@marina-mosti marina-mosti self-assigned this Aug 2, 2020
@NataliaTepluhina
Copy link
Member Author

Closing an issue as related PR was merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants