From 6541071b4acfff9df7b1ddba53000f0e1bba3257 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Mon, 30 Mar 2020 14:47:04 +0200 Subject: Lazy-load video-channels --- .../my-account-video-channels-routing.module.ts | 41 ++++++++++++++++++++++ .../my-account-video-channels.module.ts | 25 +++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts create mode 100644 client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts (limited to 'client/src/app/+my-account/my-account-video-channels') diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts new file mode 100644 index 000000000..94037e18f --- /dev/null +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels-routing.module.ts @@ -0,0 +1,41 @@ +import { NgModule } from '@angular/core' +import { RouterModule, Routes } from '@angular/router' +import { MyAccountVideoChannelUpdateComponent } from './my-account-video-channel-update.component' +import { MyAccountVideoChannelCreateComponent } from './my-account-video-channel-create.component' +import { MyAccountVideoChannelsComponent } from './my-account-video-channels.component' + +const myAccountVideoChannelsRoutes: Routes = [ + { + path: '', + component: MyAccountVideoChannelsComponent, + data: { + meta: { + title: 'Account video channels' + } + } + }, + { + path: 'create', + component: MyAccountVideoChannelCreateComponent, + data: { + meta: { + title: 'Create new video channel' + } + } + }, + { + path: 'update/:videoChannelId', + component: MyAccountVideoChannelUpdateComponent, + data: { + meta: { + title: 'Update video channel' + } + } + } +] + +@NgModule({ + imports: [ RouterModule.forChild(myAccountVideoChannelsRoutes) ], + exports: [ RouterModule ] +}) +export class MyAccountVideoChannelsRoutingModule {} diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts new file mode 100644 index 000000000..87d6b762f --- /dev/null +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.module.ts @@ -0,0 +1,25 @@ +import { NgModule } from '@angular/core' +import { ChartModule } from 'primeng/chart' +import { MyAccountVideoChannelsRoutingModule } from './my-account-video-channels-routing.module' +import { MyAccountVideoChannelsComponent } from './my-account-video-channels.component' +import { MyAccountVideoChannelCreateComponent } from './my-account-video-channel-create.component' +import { MyAccountVideoChannelUpdateComponent } from './my-account-video-channel-update.component' +import { SharedModule } from '@app/shared' + +@NgModule({ + imports: [ + MyAccountVideoChannelsRoutingModule, + SharedModule, + ChartModule + ], + + declarations: [ + MyAccountVideoChannelsComponent, + MyAccountVideoChannelCreateComponent, + MyAccountVideoChannelUpdateComponent + ], + + exports: [], + providers: [] +}) +export class MyAccountVideoChannelsModule { } -- cgit v1.2.3