-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
31 lines (30 loc) · 853 Bytes
/
app.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
/**
* Created by tibus on 31/10/14.
*/
var connect4App = angular.module('connect4App', [
'ngRoute',
// Connect 4 modules
'c4Controllers',
'c4Utils',
'c4GameManager'
]);
connect4App.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/start', {
templateUrl: 'partials/start/start-view.html',
controller: 'StartCtrl'
}).
when('/game/:player1/:player2/:nbRounds/:gridX/:gridY', {
templateUrl: 'partials/game/game-view.html',
controller: 'GameCtrl'
}).
when('/final', {
templateUrl: 'partials/final/final-view.html',
controller: 'FinalCtrl'
}).
otherwise({
redirectTo: '/start'
});
}]
);