1 //----Temporary-------\\
3 // This is provided by the server.
4 // The path of all *.module.js go here. They are RequireJs module
7 'app/core/core.module',
9 'angular-translate-loader-static-files',
12 'angular-css-injector',
13 'app/node/nodes.module',
14 'app/topology/topology.module',
15 'common/login/login.module',
16 'app/connection_manager/connection_manager.module',
17 'common/navigation/navigation.module',
18 'common/topbar/topbar.module',
19 'common/layout/layout.module']; //needed module
21 // The name of all angularjs module
25 'pascalprecht.translate',
26 'angular.css.injector',
30 'app.connection_manager',
34 //--------------------\\
36 define(module, function(ng) {
39 var app = angular.module('app', e);
42 // The overal config he is done here.
43 app.config(function ($stateProvider, $urlRouterProvider, $ocLazyLoadProvider, $translateProvider, cssInjectorProvider) {
45 $urlRouterProvider.otherwise("/"); // set the default route
47 cssInjectorProvider.setSinglePageMode(true); // remove all added CSS files when the page change
49 // set the ocLazyLoader to output error and use requirejs as loader
50 $ocLazyLoadProvider.config({
55 $translateProvider.preferredLanguage('en_US');
60 console.log('bootstrap done (: ');