mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
feat(challenge22): new challenge 22
This commit is contained in:
15
apps/router-input/src/app/app.routes.ts
Normal file
15
apps/router-input/src/app/app.routes.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Route } from '@angular/router';
|
||||
|
||||
export const appRoutes: Route[] = [
|
||||
{
|
||||
path: '',
|
||||
loadComponent: () => import('./home.component'),
|
||||
},
|
||||
{
|
||||
path: 'test/:testId',
|
||||
loadComponent: () => import('./test.component'),
|
||||
data: {
|
||||
permission: 'admin',
|
||||
},
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user