-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrouting
125 lines (120 loc) · 3.13 KB
/
routing
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SecurityGuard,PendingChangesGuard,AccessGuard } from '../shared';
import { ApplicationDateComponent,
BrokerCompensationComponent,
BorrowerInfoComponent,
CashToCloseComponent,
ComplianceCheckComponent,
ImpersonateUserComponent,
LoanPipelineComponent,
LoanInfoComponent,
LoanStatusComponent,
PricingLockComponent,
PropertyInfoComponent,
SectionAComponent,
SectionFGComponent,
SectionCEComponent,
SectionBComponent,
SectionHComponent,
ServiceProviderComponent,
LoanEstimateViewComponent } from './';
const routes: Routes = [{
path: '',
component: LoanEstimateViewComponent,
canActivate: [SecurityGuard],
canDeactivate: [PendingChangesGuard],
children: [
{
path: '',
component: LoanPipelineComponent,
canActivate: [AccessGuard]
},
{
path: 'application-date',
component: ApplicationDateComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'borrower-info',
component: BorrowerInfoComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'property-info',
component: PropertyInfoComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'loan-info',
component: LoanInfoComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'pricing-lock',
component: PricingLockComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'broker-compensation',
component: BrokerCompensationComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'sec-a-info',
component: SectionAComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'sec-b-info',
component: SectionBComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'sec-c-e-info',
component: SectionCEComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'sec-f-g-info',
component: SectionFGComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'sspl-info',
component: ServiceProviderComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'cash-to-close',
component: CashToCloseComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'impersonate-user',
component: ImpersonateUserComponent,
canDeactivate: [PendingChangesGuard],
canActivate: [AccessGuard]
},
{
path: 'loan-status',
component: LoanStatusComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'sec-h-info',
component: SectionHComponent,
canDeactivate: [PendingChangesGuard]
},
{
path: 'compliance-check',
component: ComplianceCheckComponent,
canDeactivate: [PendingChangesGuard]
}
]
}];
@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class LoanEstimateRoutingModule { }