Skip to content

Instantly share code, notes, and snippets.

💭
Working on Shoplr

Alan Museljich uloga

💭
Working on Shoplr
Block or report user

Report or block uloga

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View modulr-util
(function () {
'use strict';
angular
.module('modulr.utils', [])
.factory('$modUtil', UtilFactory);
/**
View scope$watch
javascript: (function () { var watchers, elementsWithScope, scope, i, len; watchers = 0; elementsWithScope = document.querySelectorAll('.ng-scope'); for (i = 0, len = elementsWithScope.length; i < len; i++) { scope = angular.element(elementsWithScope[i]).scope(); if (scope.$$watchers != null) { watchers += scope.$$watchers.length; } } console.log(watchers); })();
You can’t perform that action at this time.