mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-13 14:23:02 -05:00
fix(test): move all test apps
This commit is contained in:
28
apps/testing/router-outlet/src/app/app.routes.ts
Normal file
28
apps/testing/router-outlet/src/app/app.routes.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { ActivatedRouteSnapshot, Route } from '@angular/router';
|
||||
import { bookGuard } from './book.guard';
|
||||
|
||||
export const appRoutes: Route[] = [
|
||||
{
|
||||
path: '',
|
||||
pathMatch: 'full',
|
||||
redirectTo: 'search',
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
loadComponent: () => import('./search.component'),
|
||||
},
|
||||
{
|
||||
path: 'shelf',
|
||||
canActivate: [(route: ActivatedRouteSnapshot) => bookGuard(route)],
|
||||
loadComponent: () => import('./shelf.component'),
|
||||
},
|
||||
{
|
||||
path: 'no-result',
|
||||
loadComponent: () => import('./no-book-search.component'),
|
||||
},
|
||||
{
|
||||
path: '**',
|
||||
pathMatch: 'full',
|
||||
redirectTo: 'search',
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user