Watching your AngularJS Watchers

Reduce AngularJS Watch Count…

Count the Watchers

https://gist.github.com/kentcdodds/31c90402750572107922
// get all watchers on the whole page
getWatchers();
// get watchers of a specific element (and its children)
getWatchers(document.body);
// select the element of interest in Chrome Dev tools
getWatchers($0);

Surprised? Reduce your watch count…

TestingJavaScript.com Learn the smart, efficient way to test any JavaScript application.

Making software development more accessible · Husband, Father, Latter-day Saint, Teacher, OSS, GDE, @TC39 · @PayPalEng @eggheadio @FrontendMasters · #JS

Making software development more accessible · Husband, Father, Latter-day Saint, Teacher, OSS, GDE, @TC39 · @PayPalEng @eggheadio @FrontendMasters · #JS