Skip to content

Instantly share code, notes, and snippets.

View kratob's full-sized avatar

Tobias Kraze kratob

  • makandra
View GitHub Profile
@kratob
kratob / gist:5b8ab643abab86154c18
Created March 20, 2015 17:06
Bookmarklet to count angular watchers
javascript: (function() {
function getWatchCount() {
var total = 0;
var scopeIds = {};
angular.forEach(
document.querySelectorAll( ".ng-scope , .ng-isolate-scope" ),
countWatchersInNode