get the watchers / scope / isolateScope count for your angular app
inject the module
var myApp = angular.module('myApp', ['performance.detect']);
use the directive
<div data-show-watcher-scope></div>
note dependent on jQuery, please inject the jQ file to index.html
download the package
npm install
npm install -g karma
npm install karma-jasmine
configuration in webstorm
configuration files: angular-watcher-count\test\karma.conf.js
Node interpreter : C:\Program Files\nodejs\node.exe
Karma package : C:\Program Files\nodejs\node_global\node_modules\karma
- use npm
npm i performance.detect
- use bower
bower install angular-watcher-count
rewrite the test case
MIT