Skip to content

Instantly share code, notes, and snippets.

@gabrielmancini
Last active December 28, 2015 16:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielmancini/7533076 to your computer and use it in GitHub Desktop.
Save gabrielmancini/7533076 to your computer and use it in GitHub Desktop.
ngListModules
function list(module, modules) {
var modules;
if (module) {
modules = angular.module(module).requires
console.log(module, '->', modules);
while(module && modules.length) {
list(modules.shift(), angular.module(module).requires);
}
}
}
list('app');
@gabrielmancini
Copy link
Author

select and drag to bookmark:

javascript:(function(){var script=document.createElement('script');script.src='https://gist.github.com/gabrielmancini/7533076/raw/ngListModules.js';document.body.appendChild(script);})();

select tab, open console and click on bookmark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment