Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/namshi/ng-watchers
- Owner: namshi
- Created: 2014-01-19T06:58:22.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-28T20:20:47.000Z (about 10 years ago)
- Last Synced: 2024-10-09T15:09:52.118Z (30 days ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 5
- Watchers: 8
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)