watch on object vuejs code example
Example: vue watch object member
// Use a deep watcher for that:
watch: {
item: {
handler(val){
// do stuff
},
deep: true
}
}
// Use a deep watcher for that:
watch: {
item: {
handler(val){
// do stuff
},
deep: true
}
}