1 import { NgModule } from '@angular/core';
2 import { RouterModule, Routes } from '@angular/router';
4 import { VideoAddComponent, VideoUpdateComponent } from './video-edit';
5 import { VideoListComponent } from './video-list';
6 import { VideosComponent } from './videos.component';
7 import { VideoWatchComponent } from './video-watch';
9 const videosRoutes: Routes = [
12 component: VideosComponent,
16 component: VideoListComponent,
25 component: VideoAddComponent,
34 component: VideoUpdateComponent,
43 redirectTo: 'watch/:id'
47 component: VideoWatchComponent
54 imports: [ RouterModule.forChild(videosRoutes) ],
55 exports: [ RouterModule ]
57 export class VideosRoutingModule {}