bansho/app/app.js
Alexandre Viau 48b9f5c817 Improve login and logout + replaced tabs by spaces
Change-Id: I15ea3a23024a8c992b56429a5352746c9aa598bc
2015-05-15 16:34:49 -04:00

32 lines
837 B
JavaScript

'use strict';
angular.module('bansho', [
'ngRoute',
'ngCookies',
'angular.filter',
'bansho.config',
'bansho.authentication',
'bansho.utils.promiseManager',
'bansho.topbar',
'bansho.sidebar',
'bansho.host',
'bansho.service',
'bansho.view',
'bansho.view.dashboard',
'bansho.view.singleTable',
'bansho.view.host',
'bansho.view.service'
])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.otherwise({redirectTo: '/view'});
}])
// Reinitialise objects on url change
.run(['$rootScope', 'promisesManager', 'reinitTables', function ($rootScope, promisesManager, reinitTables) {
$rootScope.$on('$locationChangeStart', function () {
reinitTables();
promisesManager.clearAllPromises();
});
}]);