-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
67 lines (65 loc) · 1.58 KB
/
Copy pathscript.js
File metadata and controls
67 lines (65 loc) · 1.58 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
var app = angular.module('myApp', ['ui.router']);
app.config(function ($stateProvider, $urlRouterProvider) {
'use strict';
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('main', {
url: '/',
views: {
'': {
templateUrl: 'com/views/main.html',
controller: "MainCtrl as mainCtrl"
}
}
})
.state('home', {
url: 'home',
parent: 'main',
views: {
'page@main': {
templateUrl: 'com/views/home.html'
}
// 'menu@background': {
// templateUrl: 'com/views/menu.html'
// },
// 'header@background': {
// templateUrl: 'com/views/header.html'
// }
}
})
.state('comingSoon', {
url: 'comingSoon',
parent: 'main',
views: {
'page@main': {
templateUrl: 'com/views/comingSoon.html'
}
}
})
.state('dataStructure', {
url: 'dataStructure',
parent: 'main',
views: {
'page@main': {
templateUrl: 'com/views/dataStructure.html'
}
}
})
.state('test', {
url: "/test",
views: {
'': {
templateUrl: 'com/views/test.html'
}
}
})
.state('christmas',{
url: "/christmas",
views: {
'': {
templateUrl: 'com/views/task.html',
controller: "TaskCtrl as taskCtrl"
}
}
})
});