-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
56 lines (52 loc) · 1.4 KB
/
index.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
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
var myApp = angular.module('MyApp', [ /*'ngRoute',*/ 'ui.bootstrap', /*'ui.utils', 'ngMask',*/ 'ui.router' ]);
myApp.config(/*['$routeProvider','$stateProvider', */
function(/*$routeProvider, */$stateProvider) {
$stateProvider
.state('viewState', {
url : "/SaveCustomer",
views : {
"main" : {
templateUrl : "CustomerForm/CustomerView.html",
controller : "CustomerFormController"
},
"legal" : {
templateUrl : "Legal/LegalView.html",
controller : "LegalController"
},
"accountOverview" : {
templateUrl : "AccountOverview/AccountView.html",
controller : "AccountOverviewController"
}
}
})
.state('editState', {
url : "/SaveCustomer",
views : {
"main" : {
templateUrl : "CustomerForm/CustomerForm.html",
controller : "CustomerFormController"
},
"legal" : {
templateUrl : "Legal/LegalView.html",
controller : "LegalController"
},
"accountOverview" : {
templateUrl : "AccountOverview/AccountForm.html",
controller : "AccountOverviewController"
}
}
});
/*
$routeProvider
.when('/SaveCustomer', {
templateUrl : 'CustomerForm/CustomerForm.html',
controller : 'CustomerFormController'
})
.when('/OrderManagement', {
templateUrl : 'OrderManagement/OrderManagement.html',
controller : 'OrderManagementController'
});
*/
}
//]
);