I have an object containing longitude and latitude coordinates?
data(){
return{
center2:{lat:0,lng:0}
}
}
I am attempting to watch these values but it's not working as expected
watch:{
"center2.lat":function (newValue, oldValue) {
this.center2.lat = newValue;
}
, "center2.lng":function (newValue, oldValue) {
this.center2.lng = newValue;
}
},
Any suggestions on how I could achieve this successfully?