-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathapp.js
More file actions
50 lines (49 loc) · 1.1 KB
/
app.js
File metadata and controls
50 lines (49 loc) · 1.1 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
angular.module('radar', [
'ionic',
'ui.bootstrap',
'angularFileUpload'
])
.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider.state('home', {
url: '/',
templateUrl: 'app/core/app.template.html'
});
})
.service('SharedProperties', function () {
var event;
var listOfEvents;
var inEvent;
return {
getEvent: function () {
return event;
},
setEvent: function(value) {
event = value;
console.log("SET EVENT: ", value);
},
getListOfEvents: function () {
return listOfEvents;
},
setListOfEvents: function(value) {
listOfEvents = value;
},
getInEvent: function () {
return inEvent;
},
setInEvent: function(value) {
inEvent = value;
},
};
})
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
});