I know that both Watchers
and Observers
are computed as soon as something in $scope
changes in AngularJS. But couldn’t understand what exactly is the difference between the two.
My initial understanding is that Observers
are computed for angular expressions which are conditions on the HTML side where as Watchers
executed when $scope.$watch()
function is executed. Am I thinking properly?