0
You have to wrap your store props like this:
computed: {
fullName: {
// getter
get: function () {
return this.$store.state.myobj.name
},
// setter
set: function (newValue) {
this.$store.commit('setName', newValue)
}
}
}
to use like this:
<instance-header v-model="fullName" />
- [Vuejs]-Vue-chartjs chart update button with method parameter requires multiple clicks
- [Vuejs]-Vue deep cloning props in data is not responsive
Source:stackexchange.com