Consider the below simple example where we have two ng-model
s and three expression. So in all, we should have 5 watchers for the below screen:
There are lot of great open source tools which help you to figure out the number of watchers, one such tool is the batarang
tool. It’s a simple Google chrome extension which you can install separately.
Below is a simple snapshot wherein we ran the above program, pressed F12, enabled batarang and below are the results. You can see that he is showing 5 total watchers and for that digest cycle ran for 0.07 MS.