I\'m attempting to set up a watch in AngularJS and I\'m clearly doing something wrong, but I can\'t quite figure it out. The watch is firing on the immediate page load, but
You can use without $interval and $timeout
$scope.$watch(function() { return variableToWatch; }, function(newVal, oldVal) { if (newVal !== oldVal) { //custom logic goes here...... } }, true);