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