aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+video-channels/video-channels-routing.module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+video-channels/video-channels-routing.module.ts')
-rw-r--r--client/src/app/+video-channels/video-channels-routing.module.ts45
1 files changed, 45 insertions, 0 deletions
diff --git a/client/src/app/+video-channels/video-channels-routing.module.ts b/client/src/app/+video-channels/video-channels-routing.module.ts
new file mode 100644
index 000000000..935578d2a
--- /dev/null
+++ b/client/src/app/+video-channels/video-channels-routing.module.ts
@@ -0,0 +1,45 @@
1import { NgModule } from '@angular/core'
2import { RouterModule, Routes } from '@angular/router'
3import { MetaGuard } from '@ngx-meta/core'
4import { VideoChannelsComponent } from './video-channels.component'
5import { VideoChannelVideosComponent } from './video-channel-videos/video-channel-videos.component'
6import { VideoChannelAboutComponent } from './video-channel-about/video-channel-about.component'
7
8const videoChannelsRoutes: Routes = [
9 {
10 path: ':videoChannelId',
11 component: VideoChannelsComponent,
12 canActivateChild: [ MetaGuard ],
13 children: [
14 {
15 path: '',
16 redirectTo: 'videos',
17 pathMatch: 'full'
18 },
19 {
20 path: 'videos',
21 component: VideoChannelVideosComponent,
22 data: {
23 meta: {
24 title: 'Video channel videos'
25 }
26 }
27 },
28 {
29 path: 'about',
30 component: VideoChannelAboutComponent,
31 data: {
32 meta: {
33 title: 'About video channel'
34 }
35 }
36 }
37 ]
38 }
39]
40
41@NgModule({
42 imports: [ RouterModule.forChild(videoChannelsRoutes) ],
43 exports: [ RouterModule ]
44})
45export class VideoChannelsRoutingModule {}