-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrouting.js
37 lines (37 loc) · 1.33 KB
/
routing.js
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
30
31
32
33
34
35
36
37
app.config(['$routeProvider',
function ($routeProvider) {
$routeProvider.
when('/',{
controller: 'match_selection_controller',
controllerAs: 'match_selection',
templateUrl: 'match_selection/match_selection.html',
title : 'Welcome'
}).
when('/replay/:match_id', {
controller: 'replay_controller',
controllerAS: 'replay',
templateUrl: 'replay/replay.html',
title : 'Map Replay'
}).
when('/match/by-id', {
controller : 'match_controller',
controllerAs : 'match',
templateUrl : 'match_id_input/match_id_input.html',
title : 'Match ID'
}).
when('/match/by-history', {
controller: 'history_controller',
controllerAs: 'history',
templateUrl : 'match_history/match_history.html',
title : 'Match History'
}).
when('/error', {
controller: 'error_controller',
controllerAs : 'error',
templateUrl : 'error/error.html',
title : 'Error'
}).
otherwise({
redirectTo : '/'
});
}]);