Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Fix Config
Browse files Browse the repository at this point in the history
  • Loading branch information
amoshaviv committed Apr 28, 2014
1 parent 27dfdfe commit 14c3ce7
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions public/config.js
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
};
})();

0 comments on commit 14c3ce7

Please sign in to comment.