diff --git a/public/config.js b/public/config.js index 50d614350e..f61ff77ac9 100644 --- a/public/config.js +++ b/public/config.js @@ -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 }; })(); \ No newline at end of file