]>
Commit | Line | Data |
---|---|---|
a51bad1a C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
3 | import { PageNotFoundComponent } from './page-not-found.component' | |
19b7ebfa | 4 | import { MenuGuards } from '@app/core' |
a51bad1a C |
5 | |
6 | const pageNotFoundRoutes: Routes = [ | |
7 | { | |
8 | path: '', | |
4a7591e1 | 9 | component: PageNotFoundComponent, |
19b7ebfa RK |
10 | canActivate: [ MenuGuards.close(true) ], |
11 | canDeactivate: [ MenuGuards.open(true) ], | |
4a7591e1 C |
12 | data: { |
13 | meta: { | |
f29f487e | 14 | title: $localize`Not found` |
4a7591e1 C |
15 | } |
16 | } | |
a51bad1a C |
17 | } |
18 | ] | |
19 | ||
20 | @NgModule({ | |
21 | imports: [ RouterModule.forChild(pageNotFoundRoutes) ], | |
22 | exports: [ RouterModule ] | |
23 | }) | |
24 | export class PageNotFoundRoutingModule {} |