vuejs watch array of objects code example
Example 1: vue watch deep property
watch: {
item: {
handler(val){
// do stuff
},
deep: true
}
}
Example 2: vue watch object member
// Use a deep watcher for that:
watch: {
item: {
handler(val){
// do stuff
},
deep: true
}
}