1 import { NgModule } from '@angular/core';
2 import { RouterModule, Routes } from '@angular/router';
4 import { VideoAddComponent } from './video-add';
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,
19 titleSuffix: ' - Videos list'
25 component: VideoAddComponent,
28 titleSuffix: ' - Add a video'
34 redirectTo: 'watch/:id'
38 component: VideoWatchComponent
45 imports: [ RouterModule.forChild(videosRoutes) ],
46 exports: [ RouterModule ]
48 export class VideosRoutingModule {}