-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
25 lines (25 loc) · 751 Bytes
/
app.js
File metadata and controls
25 lines (25 loc) · 751 Bytes
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
angular.module('p3', ['ngRoute', 'firebase'])
// .constant('fb'), {
// url: 'https://project14-3.firebaseio.com'
// }
.config(function($routeProvider){
$routeProvider.
when('/login', {
templateUrl: 'login/login.html'
}).
when('/load', {
templateUrl: 'login/loading.html'
}).
when('/main-page', {
templateUrl: 'main-page/main-page.html'
}).
when('/main', {
templateUrl: 'main-page/main-page.html'
}).
when('/event/:eventId', {
templateUrl: 'event/event.html'
}).
otherwise({
redirectTo: '/login'
});
});