Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/namshi/ng-watchers

Get a count of all the watchers AngularJS set on the current DOM
https://github.com/namshi/ng-watchers

Last synced: 1 day ago
JSON representation

Get a count of all the watchers AngularJS set on the current DOM

Awesome Lists containing this project

README

        

## ng-watchers

Counting watchers on an AngularJS app might be tricky as
[batarang](https://chrome.google.com/webstore/detail/angularjs-batarang/ighdmehidhipcmcojjgiloacoafjmpfk?hl=en) provides
an overview of all watchers but makes the webpage **dead slow**.

By simply including `ng-watchers` as a `devDependency` you can simply get an overview of the watchers on the DOM
by calling `ngwatchers()`, that's it!

![example](https://github.com/namshi/ng-watchers/blob/master/bin/images/console.png?raw=true)

## Credits

The script comes from [stackoverflow](http://stackoverflow.com/a/18526757/934439).

## Tests

![b****-please](http://galeri2.uludagsozluk.com/342/bitch-please_459292.jpg)