-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.routes.ts
More file actions
61 lines (60 loc) · 2.13 KB
/
Copy pathapp.routes.ts
File metadata and controls
61 lines (60 loc) · 2.13 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
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),
}
]
},
]
},
];