Suren
0
Q:

vue watch object member

...
watch:{
    'item.someOtherProp'(newVal){
        //to work with changes in "myArray"
    },
    'item.prop'(newVal){
        //to work with changes in prop
    }
}
2
// Use a deep watcher for that:

watch: {
  item: {
     handler(val){
       // do stuff
     },
     deep: true
  }
}
0
watch: {
  item: {
     handler(val){
       // do stuff
     },
     deep: true
  }
}
0

New to Communities?

Join the community