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