-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
30 lines (27 loc) · 793 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
(function(){
var app = angular.module('app', ['ngRoute', 'ngStorage']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when('/', {
controller: 'HomeController',
templateUrl: 'templates/home.html'
})
.when('/addturn', {
controller: 'AddTurnController',
templateUrl: 'templates/add_turn.html'
})
.when('/overview', {
controller: 'OverviewController',
templateUrl: 'templates/overview.html'
})
.when('/setup', {
controller: 'SetupController',
templateUrl: 'templates/setup.html'
})
.when('/turns', {
controller: 'TurnsController',
templateUrl: 'templates/turns.html'
})
.otherwise({redirectTo:'/'});
}]);
})();