mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
feat(challenge22): create todo list
This commit is contained in:
25
apps/testing-todos-list/src/app/app.route.ts
Normal file
25
apps/testing-todos-list/src/app/app.route.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Routes } from '@angular/router';
|
||||
|
||||
export const PARAM_TICKET_ID = 'ticketId';
|
||||
|
||||
export const APP_ROUTES: Routes = [
|
||||
{
|
||||
path: '',
|
||||
pathMatch: 'full',
|
||||
redirectTo: 'list',
|
||||
},
|
||||
{
|
||||
path: 'list',
|
||||
loadComponent: () =>
|
||||
import('./list/list.component').then((m) => m.ListComponent),
|
||||
},
|
||||
{
|
||||
path: `detail/:${PARAM_TICKET_ID}`,
|
||||
loadComponent: () =>
|
||||
import('./detail/detail.component').then((m) => m.DetailComponent),
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
redirectTo: 'list',
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user