mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 13:53:03 -05:00
16 lines
291 B
TypeScript
16 lines
291 B
TypeScript
import { Route } from '@angular/router';
|
|
|
|
export const appRoutes: Route[] = [
|
|
{
|
|
path: '',
|
|
loadComponent: () => import('./home.component'),
|
|
},
|
|
{
|
|
path: 'test/:testId',
|
|
loadComponent: () => import('./test.component'),
|
|
data: {
|
|
permission: 'admin',
|
|
},
|
|
},
|
|
];
|