This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
17 additions
and
10 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
'use strict'; | ||
|
||
// Init the application configuration object for AngularJS application | ||
// Init the application configuration module for AngularJS application | ||
var ApplicationConfiguration = (function() { | ||
return { | ||
applicationModuleName: 'mean', | ||
applicationModuleVendorDependencies: ['ngResource', 'ngAnimate', 'ui.router', 'ui.bootstrap', 'ui.utils'], | ||
registerModule: function(moduleName) { | ||
// Create angular module | ||
angular.module(moduleName, []); | ||
// Init module configuration options | ||
var applicationModuleName = 'mean'; | ||
var applicationModuleVendorDependencies = ['ngResource', 'ngAnimate', 'ui.router', 'ui.bootstrap', 'ui.utils']; | ||
|
||
// Add a new vertical module | ||
var registerModule = function(moduleName) { | ||
// Create angular module | ||
angular.module(moduleName, []); | ||
|
||
// Add the module to the AngularJS configuration file | ||
angular.module(this.applicationModuleName).requires.push(moduleName); | ||
} | ||
// Add the module to the AngularJS configuration file | ||
angular.module(applicationModuleName).requires.push(moduleName); | ||
}; | ||
|
||
return { | ||
applicationModuleName: applicationModuleName, | ||
applicationModuleVendorDependencies: applicationModuleVendorDependencies, | ||
registerModule: registerModule | ||
}; | ||
})(); |