import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
-import { VideoAddComponent } from './video-add';
+import { VideoAddComponent, VideoUpdateComponent } from './video-edit';
import { VideoListComponent } from './video-list';
import { VideosComponent } from './videos.component';
import { VideoWatchComponent } from './video-watch';
}
}
},
+ {
+ path: 'edit/:id',
+ component: VideoUpdateComponent,
+ data: {
+ meta: {
+ title: 'Edit a video'
+ }
+ }
+ },
{
path: ':id',
redirectTo: 'watch/:id'