data() {
return {
parent:{
a: ‘’
}
};
},
watch:{
‘parent.child’:{
deep:true,
handler: function(newV, oldV) {
console.log(newV);
}
}
}
data() {
return {
parent:{
a: ‘’
}
};
},
watch:{
‘parent.child’:{
deep:true,
handler: function(newV, oldV) {
console.log(newV);
}
}
}