mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
30 lines
552 B
TypeScript
30 lines
552 B
TypeScript
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,
|
|
},
|
|
];
|