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 redirectTo: '/videos/local'
16 component: AccountsComponent,
17 canActivateChild: [ MetaGuard ],
21 redirectTo: 'video-channels',
26 component: AccountVideosComponent,
29 title: 'Account videos'
33 key: 'account-videos-list'
38 path: 'video-channels',
39 component: AccountVideoChannelsComponent,
42 title: 'Account video channels'
48 component: AccountAboutComponent,
51 title: 'About account'
60 imports: [ RouterModule.forChild(accountsRoutes) ],
61 exports: [ RouterModule ]
63 export class AccountsRoutingModule {}