Angular | Watch an object or an array
, March 17, 2015
$scope.$watch(‘objectOrArray’,function(newVal, oldVal){ // Do Something },true);
$scope.$watch(‘objectOrArray’,function(newVal, oldVal){ // Do Something },true);
If you are using ng-route and want to load the page from your server you need to add target=”_self” to your anchor tag. Example: <a href=”my/page” target=”_self”>LINK</a>