Can I get a list of all registered modules at run time?
For example:
// Some code somewhere in some .js file
var module1 = angular.module(\'module1\'
This involves poking at implementation details that may change over time, but you can try this.
console.dir(modules) or if you want to copy it into another editor window.prompt('', JSON.stringify(modules))This works because behind the scenes angular builds a dictionary of the loaded modules called modules. You also want to wait until it's finished loading all the modules so they're in the dictionary.