-
Notifications
You must be signed in to change notification settings - Fork 508
Closed
Labels
Description
I have this config on my main application:
var mainApp = angular.module('mainApp', ['oc.lazyLoad']);
mainApp.config(['$ocLazyLoadProvider', function($ocLazyLoadProvider) {
$ocLazyLoadProvider.config({
modules: [{
name: 'dependency2',
files: ['/full/path/to/dependency2.js']
}]
});
}]);Now, when injecting dependencies into other modules, this happens:
This works:
var subApp = angular.module('subApp', [
'dependency1',
['/full/path/to/dependency2.js'] // <-- This works
]);This dosn't work
var subApp = angular.module('subApp', [
'dependency1',
['dependency2'] // <-- This dosn't work
]);Am I missing something?
Reactions are currently unavailable