-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathprofile.module.js
More file actions
executable file
·72 lines (67 loc) · 2.46 KB
/
profile.module.js
File metadata and controls
executable file
·72 lines (67 loc) · 2.46 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
// Module Namespace Defintions
angular.module('locApp.modules.profile.services', ['ngResource']);
angular.module('locApp.modules.profile.directives', ['locApp.modules.profile.services']);
angular.module('locApp.modules.profile.controllers', ['locApp.modules.profile.services']);
// Module Definition
angular.module('locApp.modules.profile', [
'locApp',
'locApp.modules.profile.controllers',
'ui.router',
'ui.sortable',
'ui.bootstrap',
'LocalStorageModule',
'angularFileUpload'
])
.config(function($stateProvider, $urlRouterProvider) {
// Reroute root of module to list controller
$urlRouterProvider
.when('/profile', '/profile/list');
// Define various states of module
$stateProvider
.state('profile', {
url: '/profile',
templateUrl: 'html/profile.html'
})
.state('profile.list', {
parent: 'profile',
url: '/list',
templateUrl: 'html/profileList.html',
controller: 'profileListController'
})
.state('profile.create', {
parent: 'profile',
url: '/create',
templateUrl: 'html/profileForm.html',
controller: 'profileController'
})
.state('profile.ontologies', {
parent: 'profile',
url: '/ontologies',
templateUrl: 'html/ontologies.html',
controller: 'ontologiesController'
})
.state('profile.ontologies.edit', {
parent: 'profile',
url: '/ontologies/{id}',
templateUrl: 'html/ontologiesForm.html',
controller: 'ontologiesController'
})
.state('profile.ontologies.create', {
parent: 'profile',
url: '/ontologies/create',
templateUrl: 'html/ontologiesForm.html',
controller: 'ontologiesController'
})
.state('profile.logout', {
parent: 'profile',
url: '/logout',
templateUrl: 'html/profileList.html',
controller: 'logoutController'
})
.state('profile.edit', {
parent: 'profile',
url: '/{id}',
templateUrl: 'html/profileForm.html',
controller: 'profileController'
});
});