1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
4 import { MetaGuard } from '@ngx-meta/core'
6 import { VideoListComponent, MyVideosComponent } from './video-list'
7 import { VideosComponent } from './videos.component'
9 const videosRoutes: Routes = [
12 component: VideosComponent,
13 canActivateChild: [ MetaGuard ],
17 component: MyVideosComponent,
26 component: VideoListComponent,
35 loadChildren: 'app/videos/+video-edit#VideoAddModule',
38 title: 'Upload a video'
44 loadChildren: 'app/videos/+video-edit#VideoUpdateModule',
53 redirectTo: 'watch/:uuid'
57 loadChildren: 'app/videos/+video-watch#VideoWatchModule',
67 imports: [ RouterModule.forChild(videosRoutes) ],
68 exports: [ RouterModule ]
70 export class VideosRoutingModule {}