Angular | Watch an object or an array
9 years ago, March 17, 2015
Reading time: 1 mins
$scope.$watch('objectOrArray',function(newVal, oldVal){ // Do Something },true);
$scope.$watch('objectOrArray',function(newVal, oldVal){ // Do Something },true);