-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathapp.js
More file actions
43 lines (33 loc) · 1.08 KB
/
app.js
File metadata and controls
43 lines (33 loc) · 1.08 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
function l(msg) {console.log(msg);}
(function() {
"use strict";
angular.module('screenshot-server', [
'main',
'ui.router',
'ngStorage',
'listen',
'settings',
'insert'
])
.config(['$sceProvider', '$compileProvider', '$stateProvider', '$urlRouterProvider', function($sceProvider, $compileProvider, $stateProvider, $urlRouterProvider) {
$sceProvider.enabled(false);
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|file|skype):/);
$urlRouterProvider.otherwise('/listen');
$stateProvider
.state('listen', {
url: '/listen',
templateUrl: 'app/listen/listen.tpl.html',
controller: 'ListenCtrl'
})
.state('insert', {
url: '/insert',
templateUrl: 'app/insert/insert.tpl.html',
controller: 'InsertCtrl'
})
.state('settings', {
url: '/settings',
templateUrl: 'app/settings/settings.tpl.html',
controller: 'SettingsCtrl'
});
}]);
})();