-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathapp.routes.ts
More file actions
29 lines (28 loc) · 676 Bytes
/
app.routes.ts
File metadata and controls
29 lines (28 loc) · 676 Bytes
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
import { Routes } from '@angular/router';
export const routes: Routes = [
{
path: '',
redirectTo: 'dashboard',
pathMatch: 'full',
},
{
path: 'dashboard',
loadComponent: () => import('./dashboard/dashboard.component'),
},
{
path: 'registration-form-with-form-value-control',
loadComponent: () =>
import(
'./registration-form-with-form-value-control/registration-form-with-form-value-control.component'
),
},
{
path: 'simple-registration-form',
loadComponent: () =>
import('./simple-registration-form/simple-registration-form.component'),
},
{
path: '**',
redirectTo: 'dashboard',
},
];