-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathapp-routing.module.ts
More file actions
58 lines (55 loc) · 1.73 KB
/
app-routing.module.ts
File metadata and controls
58 lines (55 loc) · 1.73 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
// angular import
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
// Project import
import { AdminComponent } from './theme/layouts/admin-layout/admin-layout.component';
import { GuestLayoutComponent } from './theme/layouts/guest-layout/guest-layout.component';
const routes: Routes = [
{
path: '',
component: AdminComponent,
children: [
{
path: '',
redirectTo: '/dashboard/default',
pathMatch: 'full'
},
{
path: 'dashboard/default',
loadComponent: () => import('./demo/dashboard/default/default.component').then((c) => c.DefaultComponent)
},
{
path: 'typography',
loadComponent: () => import('./demo/component/basic-component/typography/typography.component').then((c) => c.TypographyComponent)
},
{
path: 'color',
loadComponent: () => import('./demo/component/basic-component/color/color.component').then((c) => c.ColorComponent)
},
{
path: 'sample-page',
loadComponent: () => import('./demo/others/sample-page/sample-page.component').then((c) => c.SamplePageComponent)
}
]
},
{
path: '',
component: GuestLayoutComponent,
children: [
{
path: 'login',
loadComponent: () => import('./demo/pages/authentication/auth-login/auth-login.component').then((c) => c.AuthLoginComponent)
},
{
path: 'register',
loadComponent: () =>
import('./demo/pages/authentication/auth-register/auth-register.component').then((c) => c.AuthRegisterComponent)
}
]
}
];
@NgModule({
imports: [RouterModule.forRoot(routes)],
exports: [RouterModule]
})
export class AppRoutingModule {}