Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

vuex v-model

// ...
computed: {
  message: {
    get () {
      return this.$store.state.obj.message
    },
    set (value) {
      this.$store.commit('updateMessage', value)
    }
  }
}
Source by vuex.vuejs.org #
 
PREVIOUS NEXT
Tagged: #vuex
ADD COMMENT
Topic
Name
4+8 =