This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.

53 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

'use strict';
/**
* @ngdoc overview
* @name clientApp
* @description
* # clientApp
*
* Main module of the application.
*/
var app = angular.module('clientApp', [
'ngAnimate',
'ngCookies',
'ngSanitize',
'ngMaterial',
'ui.router',
2017-03-29 11:16:41 +02:00
'ngMdIcons',
'angularFileUpload'
]);
app.config(function ($stateProvider, $urlRouterProvider) {
//Set default route
$urlRouterProvider.otherwise('/login');
//Common state
$stateProvider
// Common state ------------------------------------------------------------------
.state('login', {
url: '/login',
templateUrl: 'views/login.html',
controller: 'LoginCtrl'
})
.state('studentSpace', {
url: '/espace-etudiant',
templateUrl: 'views/studentSpace.html',
controller: 'StudentSpaceCtrl'
2017-03-29 17:25:24 +00:00
})
2017-03-29 17:25:24 +00:00
.state('responsableFormationSpace', {
url: '/espace-formation',
templateUrl: 'views/responsableFormationSpace.html',
controller: 'ResponsableFormationSpaceCtrl'
})
2017-03-29 11:16:41 +02:00
.state('administrationSpace', {
url: '/espace-secretariat',
templateUrl: 'views/administrationSpace.html',
controller: 'AdministrationSpaceCtrl'
});
});