I have this data in my controller
data
$scope.data = { home: { baseValue: \"1\", name: \"home\" }, co
You can watch an object attribute. So you can do something like
for(var key in $scope.data) { if($scope.data.hasOwnProperty(key)) { $scope.$watch("data['" + key + "'].baseValue", function(val, oldVal) { // Do stuff }); } }
Not tested, but the idea is simple.