computed: {
doneTodosCount () {
return this.$store.getters.doneTodosCount
}
}
watch:{
doneTodosCount(value) {
console.log('My store value for 'doneTodosCount' changed to '+value);
}
}
Vue.component(
'component-name',
{
// ...
computed: {
sValue: {
cache: false, // add this
get ()
{
// ...
},
set (sValue)
{
// ...
}
}
},
// ...
}
);