Created
January 12, 2016 15:42
-
-
Save niqdev/96fe59ab96b056e132f8 to your computer and use it in GitHub Desktop.
lists/enumarates all angular application module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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