feat(challenge22): create todo list

This commit is contained in:
thomas
2023-04-24 22:11:07 +02:00
parent 257e55b3d4
commit 3923cc44f1
16 changed files with 777 additions and 843 deletions

View 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',
},
];