2.1.3 • Published 6 years ago
ng-sizer v2.1.3
ng-sizer
Measure the size of your AngularJS module.
Usage
After everything is registered in your AngularJS module, simply call ngSizer()
with the module as an argument and check your console.
import ngSizer from 'ng-sizer';
...
const app = angular.module('app', []);
app.controller('HomeCtrl', function () { ... });
app.service('apiService', function () { ... });
/*
* Will log the following object to the console:
*
* {
* controllerCount: 1,
* serviceCount: 1
* }
*
*/
console.log(ngSizer(app));