-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathscript.js
53 lines (44 loc) · 1.56 KB
/
script.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
53
// create the module and name it scotchApp
var scotchApp = angular.module('scotchApp', ['ngRoute']);
// configure our routes
scotchApp.config(function($routeProvider) {
$routeProvider
// route for the home page
.when('/', {
templateUrl : 'pages/home.html',
controller : 'mainController'
})
//route for the ruv page
.when('/ruv', {
templateUrl : 'pages/ruv.html',
controller : 'ruvController'
})
//route for the stod2 page
.when('/stod2', {
templateUrl : 'pages/stod2.html',
controller : 'stod2Controller'
})
//route for the ruv page
.when('/skjar1', {
templateUrl : 'pages/skjar1.html',
controller : 'skjar1Controller'
})
.when('/stod2sport', {
templateUrl : 'pages/stod2sport.html',
controller : 'stod2sportController'
})
// route for the about page
.when('/about', {
templateUrl : 'pages/about.html',
controller : 'aboutController'
})
// route for the contact page
.when('/contact', {
templateUrl : 'pages/contact.html',
controller : 'contactController'
})
.when('/user', {
templateUrl : 'user.php',
controller : 'userController'
});
});