Created
April 25, 2016 06:34
-
-
Save ranwahle/306c906e1bd03cef4fb975dd10487496 to your computer and use it in GitHub Desktop.
This file contains 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 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