This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ng-scope { | |
outline: 1px solid blue; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var debugWatchers = function(selector, showExp) { | |
var target, i, checkInsideFn, jq, items, | |
nb_watchers = 0, | |
nb_scopes = 0, | |
scopes_id = {}; | |
if(typeof jQuery == 'undefined') { | |
jq = document.createElement('script'); | |
jq.type = 'text/javascript'; | |
jq.src = '//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
var i, data, scope, | |
count = 0, | |
all = document.all, | |
len = all.length, | |
test = {}; | |
for (i=0; i < len; i++) { | |
data = angular.element(all[i]).data(); | |
if (data.hasOwnProperty('$scope') && data.$scope.$$watchers) { |
NewerOlder