-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
39 lines (34 loc) · 866 Bytes
/
index.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
var app = angular.module('haklab',['ngRoute']);
app.config(function($routeProvider){
$routeProvider
.when('/',{
controller: 'MainController',
templateUrl: 'views/home.html'
})
.when('/workshop',{
controller: 'WorkshopController',
templateUrl: 'views/workshop.html'
})
.when('/event',{
controller: 'EventController',
templateUrl: 'views/event.html'
})
.when('/about',{
templateUrl: 'views/about.html'
})
.when('/donations',{
templateUrl: 'views/donations.html'
})
.when('/contact',{
controller: 'ContactController',
templateUrl: 'views/contact.html'
})
.when('/:id',{
controller: 'MainController',
templateUrl: 'views/home.html'
})
.otherwise('/');
});
app.constant("CONFIG", {
"url": "http://localhost:5000",
});