I have a object variable in which i need to watch some of the keys
My object
user{
name,
address,
city,
dob
}
So I need to watch address and city properties
so the way i am doing it as below
watch:{
'user.address' : (new,old)=>{
//do something
},
'user.city' : (new,old)=>{
//do something
},
}
Now what i want let say in future if i want to watch some more properties inside user object the one way is to add new watcher for that property as i did above, is there any other way that i can do it dynamically without writing watch everytime.
Thanks