Skip to content

Instantly share code, notes, and snippets.

View Druwerd's full-sized avatar

Dru Ibarra Druwerd

  • Los Angeles, CA
View GitHub Profile
(function () {
var root = angular.element(document.getElementsByTagName('body'));
var watchers = [];
var f = function (element) {
angular.forEach(['$scope', '$isolateScope'], function (scopeProperty) {
if (element.data() && element.data().hasOwnProperty(scopeProperty)) {
angular.forEach(element.data()[scopeProperty].$$watchers, function (watcher) {
watchers.push(watcher);