Skip to content

Instantly share code, notes, and snippets.

View tschneid's full-sized avatar
🤓
Looking for devs to join our team

Timo Schneider tschneid

🤓
Looking for devs to join our team
View GitHub Profile
/**
* Utility to count watchers in an AngularJS app.
*/
function countWatchers() {
var root = angular.element(document.getElementsByTagName('body'));
var watchers = [];
var f = function (element) {
if (element.data().hasOwnProperty('$scope')) {