Skip to content

Instantly share code, notes, and snippets.

@ranwahle
Created April 25, 2016 06:34
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 ranwahle/306c906e1bd03cef4fb975dd10487496 to your computer and use it in GitHub Desktop.
Save ranwahle/306c906e1bd03cef4fb975dd10487496 to your computer and use it in GitHub Desktop.
function getModule(moduleName){
console.log('Getting module ' + moduleName);
var module = angular.module(moduleName);
if (!module) {
consoile.error('Module ' + moduleName + ' was not found');
return;
}
for (var i = 0; i < module.requires.length; i++){
getModule(module.requires[i]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment