Last active
August 29, 2015 14:09
-
-
Save Gergling/35f585f139cf7767f6c2 to your computer and use it in GitHub Desktop.
Lists all required modules and components in an array of specified modules.
This file contains 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
angular.forEach([ /* ... Provide some module names ... */ ], function (moduleName) {console.log(moduleName, angular.module(moduleName).requires);angular.forEach(angular.module(moduleName)._invokeQueue, function(component) {console.log("-", component[1], component[2][0], component); });}); |
Updated to improve use of space in output.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updated to include required modules.