-
Notifications
You must be signed in to change notification settings - Fork 1
/
lanoel.js
52 lines (41 loc) · 1.21 KB
/
lanoel.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
var lanoelApp = angular.module('lanoel', ['ngRoute', 'ngAnimate', 'ngDragDrop','ui.bootstrap','dndLists']);
lanoelApp.config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
$routeProvider
// route for the home page
.when('/', {
templateUrl : '/partials/home.html',
controller : 'HeaderController'
})
// route for the about page
.when('/game', {
templateUrl : '/partials/gameDetails.html',
controller : 'GameController'
})
// route for the contact page
.when('/person', {
templateUrl : '/partials/personDetails.html',
controller : 'PersonController'
})
.when('/tournaments', {
templateUrl : '/partials/tournament.html',
controller : 'TournamentController'
})
.when('/login', {
templateUrl : '/partials/login.html',
controller : 'HeaderController'
})
.when('/createAccount', {
templateUrl : '/partials/createAccount.html',
controller : 'CreateAccountController'
})
.when('/updatescores', {
templateUrl : '/partials/updateScores.html',
controller : 'UpdateScoresController'
})
.otherwise({redirectTo:'/'});
$locationProvider.html5Mode(
{
enabled: true,
requireBase: false
});
}]);