blob: cb77685c04e78ed49af25a49aaf45a0950de846c (
plain) (
tree)
|
|
import { NgModule } from '@angular/core'
import { RouterModule, Routes } from '@angular/router'
import { VideoWatchComponent } from './video-watch.component'
const videoWatchRoutes: Routes = [
{
path: 'playlist/:playlistId',
component: VideoWatchComponent
},
{
path: ':videoId/comments/:commentId',
redirectTo: ':videoId'
},
{
path: ':videoId',
component: VideoWatchComponent
}
]
@NgModule({
imports: [ RouterModule.forChild(videoWatchRoutes) ],
exports: [ RouterModule ]
})
export class VideoWatchRoutingModule {}
|