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