From 14c3ce7cc995a3267b12e86a7a1f0e8bf33be140 Mon Sep 17 00:00:00 2001 From: Amos Haviv Date: Mon, 28 Apr 2014 22:04:44 +0300 Subject: [PATCH] Fix Config --- public/config.js | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) 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