1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { MetaGuard } from '@ngx-meta/core'
4 import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
5 import { VideoChannelPlaylistsComponent } from './video-channel-playlists/video-channel-playlists.component'
6 import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
7 import { VideoChannelsComponent } from './video-channels.component'
9 const videoChannelsRoutes: Routes = [
11 path: ':videoChannelName',
12 component: VideoChannelsComponent,
13 canActivateChild: [ MetaGuard ],
22 component: VideoChannelVideosComponent,
25 title: $localize`Video channel videos`
29 key: 'video-channel-videos-list'
34 path: 'video-playlists',
35 component: VideoChannelPlaylistsComponent,
38 title: $localize`Video channel playlists`
44 component: VideoChannelAboutComponent,
47 title: $localize`About video channel`
56 imports: [ RouterModule.forChild(videoChannelsRoutes) ],
57 exports: [ RouterModule ]
59 export class VideoChannelsRoutingModule {}