]>
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 { CanDeactivateGuard } from '../../shared/guards/can-deactivate-guard.service' | |
8 | import { VideoAddComponent } from './video-add.component' | |
9 | ||
10 | const videoAddRoutes: Routes = [ | |
11 | { | |
12 | path: '', | |
13 | component: VideoAddComponent, | |
14 | canActivate: [ MetaGuard, LoginGuard ], | |
15 | canDeactivate: [ CanDeactivateGuard ] | |
16 | } | |
17 | ] | |
18 | ||
19 | @NgModule({ | |
20 | imports: [ RouterModule.forChild(videoAddRoutes) ], | |
21 | exports: [ RouterModule ] | |
22 | }) | |
23 | export class VideoAddRoutingModule {} |