]>
Commit | Line | Data |
---|---|---|
1 | import { NgModule } from '@angular/core' | |
2 | import { RouterModule, Routes } from '@angular/router' | |
3 | ||
4 | import { MetaGuard } from '@ngx-meta/core' | |
5 | ||
6 | import { LoginGuard } from '../../core' | |
7 | import { VideoUpdateComponent } from './video-update.component' | |
8 | import { VideoUpdateResolver } from '@app/videos/+video-edit/video-update.resolver' | |
9 | import { CanDeactivateGuard } from '@app/shared/guards/can-deactivate-guard.service' | |
10 | ||
11 | const videoUpdateRoutes: Routes = [ | |
12 | { | |
13 | path: '', | |
14 | component: VideoUpdateComponent, | |
15 | canActivate: [ MetaGuard, LoginGuard ], | |
16 | canDeactivate: [ CanDeactivateGuard ], | |
17 | resolve: { | |
18 | videoData: VideoUpdateResolver | |
19 | } | |
20 | } | |
21 | ] | |
22 | ||
23 | @NgModule({ | |
24 | imports: [ RouterModule.forChild(videoUpdateRoutes) ], | |
25 | exports: [ RouterModule ] | |
26 | }) | |
27 | export class VideoUpdateRoutingModule {} |