Skip to content

Instantly share code, notes, and snippets.

@niqdev
Created January 12, 2016 15:42
Show Gist options
  • Save niqdev/96fe59ab96b056e132f8 to your computer and use it in GitHub Desktop.
Save niqdev/96fe59ab96b056e132f8 to your computer and use it in GitHub Desktop.
lists/enumarates all angular application module
# lists/enumarates all angular application module
var allModules = angular.module('myApplication').requires;
# lists/enumarates all angular module service/controller/directive ...
angular.module('myApplication')['_invokeQueue'].forEach(function(value) {
console.log(value[1] + ": " + value[2][0]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment