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 --- client/src/app/+videos/videos.module.ts | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 client/src/app/+videos/videos.module.ts (limited to 'client/src/app/+videos/videos.module.ts') diff --git a/client/src/app/+videos/videos.module.ts b/client/src/app/+videos/videos.module.ts new file mode 100644 index 000000000..1cf68bf83 --- /dev/null +++ b/client/src/app/+videos/videos.module.ts @@ -0,0 +1,47 @@ +import { NgModule } from '@angular/core' +import { SharedFormModule } from '@app/shared/shared-forms' +import { SharedGlobalIconModule } from '@app/shared/shared-icons' +import { SharedMainModule } from '@app/shared/shared-main' +import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription' +import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature' +import { OverviewService } from './video-list' +import { VideoOverviewComponent } from './video-list/overview/video-overview.component' +import { VideoLocalComponent } from './video-list/video-local.component' +import { VideoMostLikedComponent } from './video-list/video-most-liked.component' +import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component' +import { VideoTrendingComponent } from './video-list/video-trending.component' +import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component' +import { VideosRoutingModule } from './videos-routing.module' +import { VideosComponent } from './videos.component' + +@NgModule({ + imports: [ + VideosRoutingModule, + + SharedMainModule, + SharedFormModule, + SharedVideoMiniatureModule, + SharedUserSubscriptionModule, + SharedGlobalIconModule + ], + + declarations: [ + VideosComponent, + + VideoTrendingComponent, + VideoMostLikedComponent, + VideoRecentlyAddedComponent, + VideoLocalComponent, + VideoUserSubscriptionsComponent, + VideoOverviewComponent + ], + + exports: [ + VideosComponent + ], + + providers: [ + OverviewService + ] +}) +export class VideosModule { } -- cgit v1.2.3