Find out what's in an Angular 1 app
bower install ps-which -D
npm install ps-which -D
1. Include ps-which
Load ps-which immediately after loading Angular.
<!-- Load other Angular libs and your app code here -->
Require ps-which immediately after requiring Angular.
var angular = ;;// code that uses angular here
2. Load Angular app in browser and open dev console
ps-which is always accessed through the
psWhich global variable.
In dev console:
Find out what
name is and where it comes from.
name (string) should be the name of a
- directive (camelCasedName and dashed-name formats accepted)
- provider (<name> and <name>Provider formats accepted)
Print everything ps-which knows to console.
filter is an optional RegExp to filter modules by name. Only matching modules will be printed. Defaults to printing all modules.
ps-which's raw data object.
ps-which does not know about Angular built-ins (ngShow, $http, etc).
Custom attributes that aren't directives
Given this directive
ps-which knows about
foo but knows nothing about