I am trying to monitor a nested object in my code. Here is the snippet:
watch: {
'input.source.location': {
handler: () => {
console.log("locations");
}
},
'input': {
handler: () => {
console.log("all the rest");
},
deep: true
}
},
If I modify the location
property, I only want "locations" to be displayed. How can I achieve this?
Appreciate any guidance.