diff --git a/src/app/app.routes.ts b/src/app/app.routes.ts index 874973d..ee8aad5 100644 --- a/src/app/app.routes.ts +++ b/src/app/app.routes.ts @@ -1,5 +1,6 @@ import { Routes } from '@angular/router'; import { authGuard } from './service/auth.guard'; +import NotFoundComponent from './component/not-found/not-found.component'; export const routes: Routes = [ { @@ -32,8 +33,12 @@ export const routes: Routes = [ ], canActivate: [authGuard], }, + { + path: '404', + component: NotFoundComponent, + }, { path: '**', - loadComponent: () => import('./component/not-found/not-found.component'), + redirectTo: '404', }, ];