aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/account/account-routing.module.ts
blob: 029d9778882907b92a2bb2abab033ca950a16f2e (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
24
25
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'

import { MetaGuard } from '@ngx-meta/core'

import { AccountComponent } from './account.component'

const accountRoutes: Routes = [
  {
    path: 'account',
    component: AccountComponent,
    canActivate: [ MetaGuard ],
    data: {
      meta: {
        title: 'My account'
      }
    }
  }
]

@NgModule({
  imports: [ RouterModule.forChild(accountRoutes) ],
  exports: [ RouterModule ]
})
export class AccountRoutingModule {}