1 import { NgModule } from '@angular/core'
2 import { RouterModule, Routes } from '@angular/router'
3 import { VideoWatchComponent } from './video-watch.component'
5 const videoWatchRoutes: Routes = [
8 component: VideoWatchComponent
11 path: ':videoId/comments/:commentId',
12 redirectTo: ':videoId'
16 component: VideoWatchComponent
21 imports: [ RouterModule.forChild(videoWatchRoutes) ],
22 exports: [ RouterModule ]
24 export class VideoWatchRoutingModule {}