import { VideoTrendingComponent } from './video-list/video-trending.component'
import { VideosComponent } from './videos.component'
import { VideoUserSubscriptionsComponent } from '@app/videos/video-list/video-user-subscriptions.component'
+import { VideoOverviewComponent } from '@app/videos/video-list/video-overview.component'
const videosRoutes: Routes = [
{
component: VideosComponent,
canActivateChild: [ MetaGuard ],
children: [
+ {
+ path: 'overview',
+ component: VideoOverviewComponent,
+ data: {
+ meta: {
+ title: 'Videos overview'
+ }
+ }
+ },
{
path: 'trending',
component: VideoTrendingComponent,
data: {
meta: {
title: 'Trending videos'
+ },
+ reuse: {
+ enabled: true,
+ key: 'trending-videos-list'
}
}
},
data: {
meta: {
title: 'Recently added videos'
+ },
+ reuse: {
+ enabled: true,
+ key: 'recently-added-videos-list'
}
}
},
data: {
meta: {
title: 'Subscriptions'
+ },
+ reuse: {
+ enabled: true,
+ key: 'subscription-videos-list'
}
}
},
data: {
meta: {
title: 'Local videos'
+ },
+ reuse: {
+ enabled: true,
+ key: 'local-videos-list'
}
}
},
}
},
{
- path: 'watch/:uuid/comments/:commentId',
- redirectTo: 'watch/:uuid'
- },
- {
- path: 'watch/:uuid',
+ path: 'watch',
loadChildren: 'app/videos/+video-watch/video-watch.module#VideoWatchModule',
data: {
preload: 3000