From 1942f11d5ee6926ad93dc1b79fae18325ba5de18 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 23 Jun 2020 14:49:20 +0200 Subject: Lazy load all routes --- .../+videos/+video-edit/video-add-routing.module.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 client/src/app/+videos/+video-edit/video-add-routing.module.ts (limited to 'client/src/app/+videos/+video-edit/video-add-routing.module.ts') diff --git a/client/src/app/+videos/+video-edit/video-add-routing.module.ts b/client/src/app/+videos/+video-edit/video-add-routing.module.ts new file mode 100644 index 000000000..9ff66bea0 --- /dev/null +++ b/client/src/app/+videos/+video-edit/video-add-routing.module.ts @@ -0,0 +1,20 @@ +import { NgModule } from '@angular/core' +import { RouterModule, Routes } from '@angular/router' +import { CanDeactivateGuard, LoginGuard } from '@app/core' +import { MetaGuard } from '@ngx-meta/core' +import { VideoAddComponent } from './video-add.component' + +const videoAddRoutes: Routes = [ + { + path: '', + component: VideoAddComponent, + canActivate: [ MetaGuard, LoginGuard ], + canDeactivate: [ CanDeactivateGuard ] + } +] + +@NgModule({ + imports: [ RouterModule.forChild(videoAddRoutes) ], + exports: [ RouterModule ] +}) +export class VideoAddRoutingModule {} -- cgit v1.2.3