]>
Commit | Line | Data |
---|---|---|
a685e25c C |
1 | import { NgModule } from '@angular/core' |
2 | import { RouterModule, Routes } from '@angular/router' | |
a685e25c C |
3 | import { VideoWatchComponent } from './video-watch.component' |
4 | ||
5 | const videoWatchRoutes: Routes = [ | |
6 | { | |
e2f01c47 | 7 | path: 'playlist/:playlistId', |
0f01a8ba | 8 | component: VideoWatchComponent |
f0a39880 C |
9 | }, |
10 | { | |
e2f01c47 C |
11 | path: ':videoId/comments/:commentId', |
12 | redirectTo: ':videoId' | |
f0a39880 C |
13 | }, |
14 | { | |
e2f01c47 | 15 | path: ':videoId', |
0f01a8ba | 16 | component: VideoWatchComponent |
a685e25c C |
17 | } |
18 | ] | |
19 | ||
20 | @NgModule({ | |
21 | imports: [ RouterModule.forChild(videoWatchRoutes) ], | |
22 | exports: [ RouterModule ] | |
23 | }) | |
24 | export class VideoWatchRoutingModule {} |