mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
fix(challenge 48): challenge naming
This commit is contained in:
29
apps/forms/avoid-losing-form-data/src/app/app.routes.ts
Normal file
29
apps/forms/avoid-losing-form-data/src/app/app.routes.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import { Route } from '@angular/router';
|
||||
import { JoinComponent } from './pages/join.component';
|
||||
import { PageComponent } from './pages/page.component';
|
||||
|
||||
export const appRoutes: Route[] = [
|
||||
{
|
||||
path: '',
|
||||
pathMatch: 'full',
|
||||
redirectTo: 'form',
|
||||
},
|
||||
{
|
||||
path: 'form',
|
||||
loadComponent: () => JoinComponent,
|
||||
},
|
||||
{
|
||||
path: 'page-1',
|
||||
data: {
|
||||
title: 'Page 1',
|
||||
},
|
||||
loadComponent: () => PageComponent,
|
||||
},
|
||||
{
|
||||
path: 'page-2',
|
||||
data: {
|
||||
title: 'Page 2',
|
||||
},
|
||||
loadComponent: () => PageComponent,
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user