blob: 11a650c80f9fb20a8e27d7ab717014418c44ca37 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { MetaGuard } from '@ngx-meta/core'
import { AboutComponent } from './about.component'
const aboutRoutes: Routes = [
{
path: 'about',
component: AboutComponent,
canActivate: [ MetaGuard ],
data: {
meta: {
title: 'About'
}
}
}
]
@NgModule({
imports: [ RouterModule.forChild(aboutRoutes) ],
exports: [ RouterModule ]
})
export class AboutRoutingModule {}
|