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 'app/flow/flows.module',
18 'app/network/network.module',
19 'common/navigation/navigation.module',
20 'common/topbar/topbar.module',
21 'common/layout/layout.module']; //needed module
23 // The name of all angularjs module
27 'pascalprecht.translate',
28 'angular.css.injector',
32 'app.connection_manager',
38 //--------------------\\
40 define(module, function(ng) {
43 var app = angular.module('app', e);
46 // The overal config he is done here.
47 app.config(function ($stateProvider, $urlRouterProvider, $ocLazyLoadProvider, $translateProvider, cssInjectorProvider) {
49 $urlRouterProvider.otherwise("/"); // set the default route
51 cssInjectorProvider.setSinglePageMode(true); // remove all added CSS files when the page change
53 // set the ocLazyLoader to output error and use requirejs as loader
54 $ocLazyLoadProvider.config({
59 $translateProvider.preferredLanguage('en_US');
64 console.log('bootstrap done (: ');