-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.routes.ts
More file actions
110 lines (109 loc) · 3 KB
/
Copy pathapp.routes.ts
File metadata and controls
110 lines (109 loc) · 3 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
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
import { Routes } from '@angular/router';
export const routes: Routes = [
{
path: '',
redirectTo: '/login',
pathMatch: 'full',
},
{
path: 'login',
loadComponent: () =>
import('./pages/login/login-default/login-default.component').then(
(c) => c.LoginDefaultComponent
),
children: [
{
path: '',
loadComponent: () =>
import('./pages/login/login-user/login-user.component').then(
(c) => c.LoginUserComponent
),
},
{
path: 'forgot-password',
loadComponent: () =>
import('./pages/login/login-forgot/login-forgot.component').then(
(c) => c.LoginForgotComponent
),
},
],
},
{
path: 'dashboard',
loadComponent: () =>
import('./pages/dashboard/dash-default/dash-default.component').then(
(c) => c.DashDefaultComponent
),
children: [
{
path: '',
loadComponent: () =>
import('./pages/dashboard/dash-content/dash-content.component').then(
(c) => c.DashContentComponent
),
},
{
path: 'products',
loadComponent: () =>
import(
'./pages/products/product-default/product-default.component'
).then((c) => c.ProductDefaultComponent),
children: [
{
path: '',
loadComponent: () =>
import(
'./pages/products/components/product-list/product-list.component'
).then((c) => c.ProductListComponent),
},
{
path: 'edit',
loadComponent: () =>
import(
'./pages/products/components/product-edit/product-edit.component'
).then((c) => c.ProductEditComponent),
},
],
},
{
path: 'categories',
loadComponent: () =>
import(
'./pages/categories/category-default/category-default.component'
).then((c) => c.CategoryDefaultComponent),
children: [
{
path: '',
loadComponent: () =>
import(
'./pages/categories/components/category-list/category-list.component'
).then((c) => c.CategoryListComponent),
},
{
path: 'edit',
loadComponent: () =>
import(
'./pages/categories/components/category-edit/category-edit.component'
).then((c) => c.CategoryEditComponent),
},
],
},
{
path: 'orders',
loadComponent: () =>
import('./pages/order/order-default/order-default.component').then(
(c) => c.OrderDefaultComponent
),
children: [
{
path: '',
loadComponent: () =>
import(
'./pages/order/components/order-list/order-list.component'
).then((c) => c.OrderListComponent),
},
],
},
],
},
];