-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
94 lines (92 loc) · 2.57 KB
/
Copy pathscript.js
File metadata and controls
94 lines (92 loc) · 2.57 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
var app = angular.module('myApp', ['ui.router', 'ui.bootstrap']);
app.config(function ($stateProvider, $urlRouterProvider) {
'use strict';
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('background', {
url: "/",
views: {
'': {
templateUrl: 'com/views/main.html',
controller: "MainCtrl as mainCtrl"
},
'menu@background': {
templateUrl: 'com/views/menu.html'
},
'header@background': {
templateUrl: 'com/views/header.html'
}
}
})
.state('home',{
parent: 'background',
url: "home",
views: {
'content@background': {
templateUrl: 'com/views/content.html'
}
}
// resolve: {
// 'loginState': function ($q, $location, $http, $rootScope) {
// var def = $q.defer();
// $http.get('php/logService.php?fn=loginCheck').then(function (resp) {
// if (resp.data.result != "logged_in"){
// $rootScope.logState = resp.data.result;
// console.log($rootScope.logState);
// $location.path("/home/");
// }
// else {
// console.log(resp.data);
// d.resolve('loginState');
// }
// });
// return def.promise;
// }
// }
})
.state('MoonRiver', {
parent: 'background',
url: 'MoonRiver',
views: {
'content@background': {
templateUrl: 'com/views/moonriver.html'
}
}
})
.state('Experiment', {
parent: 'background',
url: 'Experiment',
views: {
'content@background': {
templateUrl: 'com/views/data.html'
}
}
})
.state('Data', {
parent: 'background',
url: 'Data',
views: {
'content@background': {
templateUrl: 'com/views/data.html'
}
}
})
.state('Code', {
parent: 'background',
url: 'Code',
views: {
'content@background': {
templateUrl: 'com/views/data.html'
}
}
})
.state('Charts', {
parent: 'background',
url: 'Charts',
views: {
'content@background': {
templateUrl: 'com/views/data.html'
}
}
})
});