1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { AccountsComponent } from './accounts.component'
5 import { AccountVideosComponent } from './account-videos/account-videos.component'
6 import { AccountAboutComponent } from './account-about/account-about.component'
7 import { AccountVideoChannelsComponent } from './account-video-channels/account-video-channels.component'
9 const accountsRoutes: Routes = [
12 component: AccountsComponent,
13 canActivateChild: [ MetaGuard ],
22 component: AccountVideosComponent,
25 title: 'Account videos'
30 path: 'video-channels',
31 component: AccountVideoChannelsComponent,
34 title: 'Account video channels'
40 component: AccountAboutComponent,
43 title: 'About account'
52 imports: [ RouterModule.forChild(accountsRoutes) ],
53 exports: [ RouterModule ]
55 export class AccountsRoutingModule {}