1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
4 import { MetaGuard } from '@ngx-meta/core'
6 import { LoginGuard } from '../core'
7 import { AccountComponent } from './account.component'
8 import { AccountSettingsComponent } from './account-settings/account-settings.component'
9 import { AccountVideosComponent } from './account-videos/account-videos.component'
11 const accountRoutes: Routes = [
14 component: AccountComponent,
15 canActivateChild: [ MetaGuard, LoginGuard ],
19 component: AccountSettingsComponent,
22 title: 'Account settings'
28 component: AccountVideosComponent,
31 title: 'Account videos'
40 imports: [ RouterModule.forChild(accountRoutes) ],
41 exports: [ RouterModule ]
43 export class AccountRoutingModule {}