Angular Stats
This is a lightweight utility that gives you some statistics about your angularjs application. In particular, you get the
- number of scopes,
- number of watchers,
- number of DOM elements,
- duration of digest cycles,
For every angularjs component where you define the property name
, you get also
- Number of watchers per component.
The property name
can be defined on your controller class or binded to the scope. The module has been developed usign Typescript
and is exported as UMD
, so you can use a module resolver (Webpack / Browserify) in order to import
it or add it globally.
Requirements
-
AngularJs 1.5+ (it doesn't require jQuery)
-
The utility is not working with angular >= 2.x
Installation
npm install angular-stats --save
Build
npm run build
Usage
// --- app.module.ts ---// Typescript + ES2015 modules ; .component"app", AppComponent .name; // --- app.component.ts ---// ...define your AppComponent using an AppController like this: ;
// Javascript angular ;
If you bundle app
and vendors
in two different bundles, require the module using angular-stats