]>
Commit | Line | Data |
---|---|---|
384ba8b7 C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
3 | import { VideoResolver } from '@app/shared/shared-main' | |
4 | import { VideoStatsComponent } from './video' | |
5 | ||
6 | const statsRoutes: Routes = [ | |
7 | { | |
8 | path: 'videos/:videoId', | |
9 | component: VideoStatsComponent, | |
10 | data: { | |
11 | meta: { | |
12 | title: $localize`Video stats` | |
13 | } | |
14 | }, | |
15 | resolve: { | |
16 | video: VideoResolver | |
17 | } | |
18 | } | |
19 | ] | |
20 | ||
21 | @NgModule({ | |
22 | imports: [ RouterModule.forChild(statsRoutes) ], | |
23 | exports: [ RouterModule ] | |
24 | }) | |
25 | export class StatsRoutingModule {} |