20a0d553
Geoffrey PREUD'HOMME
Il parait que les...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
angular.module('ciApp', ['ngAnimate', 'ngRoute', 'ConnectCtrl', 'MembreCtrl', 'ForumDirCtrl', 'ForumConvCtrl', 'SessionsCtrl']).config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/home.html'
})
.when('/membres', {
templateUrl: 'views/membres.html',
controller: 'MembreCtrl'
})
.when('/forum', {
redirectTo: 'forum/dir/0'
})
.when('/forum/dir/:dir_id', {
templateUrl: 'views/forumDir.html',
controller: 'ForumDirCtrl'
})
.when('/forum/conv/:conv_id', {
templateUrl: 'views/forumConv.html',
controller: 'ForumConvCtrl'
})
.when('/connect', {
templateUrl: 'views/connect.html',
controller: 'ConnectCtrl'
})
.otherwise({
redirectTo: '/'
});
$locationProvider.html5Mode(true);
});
|