1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component'
5 import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
6 import { VideoChannelsComponent } from './video-channels.component'
8 const videoChannelsRoutes: Routes = [
10 path: ':videoChannelName',
11 component: VideoChannelsComponent,
12 canActivateChild: [ MetaGuard ],
21 component: VideoChannelVideosComponent,
24 title: $localize`Video channel videos`
28 key: 'video-channel-videos-list'
33 path: 'video-playlists',
34 component: VideoChannelPlaylistsComponent,
37 title: $localize`Video channel playlists`
46 imports: [ RouterModule.forChild(videoChannelsRoutes) ],
47 exports: [ RouterModule ]
49 export class VideoChannelsRoutingModule {}