Dependency Injection

As a convenience you can also load dependencies by placing one or more module definitions in the dependency injection block of your module. This will only work for lazy loaded modules:

angular.module('MyModule', ['pascalprecht.translate', {
    files: [
        '/components/TestModule/TestModule.js',
        '/components/bootstrap/css/bootstrap.css',
        '/components/bootstrap/js/bootstrap.js'
    ],
  	cache: false
}]);

Or even simpler (if you don't need to add parameters):

angular.module('MyModule', ['pascalprecht.translate', [
	'/components/TestModule/TestModule.js',
  '/components/bootstrap/css/bootstrap.css',
  '/components/bootstrap/js/bootstrap.js'
]]);