-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
28 lines (23 loc) · 873 Bytes
/
main.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
angular.module('omahaproxyApp', ['ngRoute', 'ngAnimate', 'omahaproxyApp.controllers', 'omahaproxyApp.directives', 'omahaproxyApp.filters'])
.config(function ($routeProvider) {
$routeProvider
.when('/presentatie', {
templateUrl: '/views/presentatie.html',
controller: 'PresentatieCtrl'
})
.when('/omahaproxy', {
templateUrl: 'views/omahaproxy.html',
controller: 'OmahaproxyCtrl',
// Resolve needed data so the view can render without hiccups.
resolve: {
resolvedChromebooks: function( OmahaproxyService ) {
return OmahaproxyService.get();
}
}
})
.otherwise({ redirectTo: '/presentatie' });
});
angular.module('omahaproxyApp.controllers', ['omahaproxyApp.services']);
angular.module('omahaproxyApp.services', []);
angular.module('omahaproxyApp.directives', []);
angular.module('omahaproxyApp.filters', []);