Skip to content

Instantly share code, notes, and snippets.

@Gergling
Last active August 29, 2015 14:09
Show Gist options
  • Save Gergling/35f585f139cf7767f6c2 to your computer and use it in GitHub Desktop.
Save Gergling/35f585f139cf7767f6c2 to your computer and use it in GitHub Desktop.
Lists all required modules and components in an array of specified modules.
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); });});
@Gergling
Copy link
Author

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