-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroute.config.js
51 lines (45 loc) · 929 Bytes
/
route.config.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
var app=angular.module('myApp');
app.config(function($stateProvider, $urlRouterProvider){
$stateProvider.
state('app',{
url:'/',
views: {
'header': {
templateUrl:'header/header.html',
controller:'headerController',
controllerAs:'headerCtrl'
},
'main': {
template:'<div ui-view></div>'
},
'footer': {
templateUrl:'footer/footer.html'
}
}
})
.state('app.home',{
url:'home',
templateUrl:'home/home.html',
controller:'homeController'
})
.state('app.ride',{
url:'ride',
templateUrl:'ride/ride.html',
controller:'rideController'
})
.state('app.drive',{
url:'drive',
templateUrl:'drive/drive.html',
controller:'driveController'
})
.state('app.help',{
url:'help',
templateUrl:'help/help.html',
controller:'helpController'
})
.state('app.sign_in',{
url:'sign_in',
templateUrl:'sign_in/sign_in.html'
});
$urlRouterProvider.otherwise('home');
});