+1 vote
in Angular by
How Can We Measure no: of Watchers & Time Spent on Digest Cycle?

1 Answer

0 votes
by

Consider the below simple example where we have two ng-models and three expression. So in all, we should have 5 watchers for the below screen:

Image 10

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.

Image 11

...