0👍
Please consider this code example.
-
Vue watch child property
watch:{
‘item.someOtherProp'(newVal){
//to work with changes in "myArray"
},
‘item.prop'(newVal){
//to work with changes in prop
}
} -
Vue watch object member
watch: {
item: {
handler(val){
// do stuff
},
deep: true
}
}
Also please consider this reference.https://vuejs.org/v2/api/#watch. You can deeply watch objects for changes.
Source:stackexchange.com