Last active
December 28, 2015 16:59
-
-
Save gabrielmancini/7533076 to your computer and use it in GitHub Desktop.
ngListModules
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
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'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
select and drag to bookmark:
select tab, open console and click on bookmark