-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.routes.ts
More file actions
70 lines (64 loc) · 2.29 KB
/
app.routes.ts
File metadata and controls
70 lines (64 loc) · 2.29 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
import { Routes } from '@angular/router';
import { Component } from '@angular/core';
import { AuthorizationService } from './service/core/authorization.service';
import { LoginComponent } from './component/external/login/login.component';
import { ForgotPasswordComponent } from './component/external/forgot-password/forgot-password.component';
import { RegisterComponent } from './component/external/register/register.component';
import { SetupComponent } from './component/external/setup/setup.component';
import { LandingComponent } from './component/external/landing/landing.component';
import { DashboardComponent } from './component/dashboard/dashboard.component';
import { ReportComponent } from './component/report/report.component';
import { IncomeReportComponent } from './component/report/income-report/income-report.component';
import { ExpenseReportComponent } from './component/report/expense-report/expense-report.component';
import { DailyReportComponent } from './component/report/daily-report/daily-report.component';
import { AnnualReportComponent } from './component/report/annual-report/annual-report.component';
// import { StatementComponent } from './component/statement/statement.component';
export const routes: Routes = [
{ path: '', component: LandingComponent },
{
path: 'dashboard',
component: DashboardComponent,
canActivate: [AuthorizationService]
},
{
path: 'report-income', component: ReportComponent,
children:
[
{
path: '',
component: IncomeReportComponent
}
]
},
{
path: 'report-expense', component: ReportComponent,
children:
[
{
path: '',
component: ExpenseReportComponent
}
]
},
{
path: 'report-daily', component: ReportComponent,
children:
[
{
path: '',
component: DailyReportComponent
}
]
},
{
path: 'report-annual', component: ReportComponent,
children:
[
{
path: '',
component: AnnualReportComponent
}
]
},
// { path: 'statement', component: StatementComponent },
];