24 lines
549 B
TypeScript
24 lines
549 B
TypeScript
import { NgModule } from '@angular/core'
|
|
import { RouterModule, Routes } from '@angular/router'
|
|
import { PageNotFoundComponent } from './page-not-found.component'
|
|
import { MetaGuard } from '@ngx-meta/core'
|
|
|
|
const pageNotFoundRoutes: Routes = [
|
|
{
|
|
path: '',
|
|
component: PageNotFoundComponent,
|
|
canActivate: [ MetaGuard ],
|
|
data: {
|
|
meta: {
|
|
title: 'Not found'
|
|
}
|
|
}
|
|
}
|
|
]
|
|
|
|
@NgModule({
|
|
imports: [ RouterModule.forChild(pageNotFoundRoutes) ],
|
|
exports: [ RouterModule ]
|
|
})
|
|
export class PageNotFoundRoutingModule {}
|