aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/videos.module.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-23 14:49:20 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-06-23 16:00:49 +0200
commit1942f11d5ee6926ad93dc1b79fae18325ba5de18 (patch)
tree3f2a3cd9466a56c419d197ac832a3e9cbc86bec4 /client/src/app/+videos/videos.module.ts
parent67ed6552b831df66713bac9e672738796128d33f (diff)
downloadPeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.tar.gz
PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.tar.zst
PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.zip
Lazy load all routes
Diffstat (limited to 'client/src/app/+videos/videos.module.ts')
-rw-r--r--client/src/app/+videos/videos.module.ts47
1 files changed, 47 insertions, 0 deletions
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 @@
1import { NgModule } from '@angular/core'
2import { SharedFormModule } from '@app/shared/shared-forms'
3import { SharedGlobalIconModule } from '@app/shared/shared-icons'
4import { SharedMainModule } from '@app/shared/shared-main'
5import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription'
6import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'
7import { OverviewService } from './video-list'
8import { VideoOverviewComponent } from './video-list/overview/video-overview.component'
9import { VideoLocalComponent } from './video-list/video-local.component'
10import { VideoMostLikedComponent } from './video-list/video-most-liked.component'
11import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'
12import { VideoTrendingComponent } from './video-list/video-trending.component'
13import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component'
14import { VideosRoutingModule } from './videos-routing.module'
15import { VideosComponent } from './videos.component'
16
17@NgModule({
18 imports: [
19 VideosRoutingModule,
20
21 SharedMainModule,
22 SharedFormModule,
23 SharedVideoMiniatureModule,
24 SharedUserSubscriptionModule,
25 SharedGlobalIconModule
26 ],
27
28 declarations: [
29 VideosComponent,
30
31 VideoTrendingComponent,
32 VideoMostLikedComponent,
33 VideoRecentlyAddedComponent,
34 VideoLocalComponent,
35 VideoUserSubscriptionsComponent,
36 VideoOverviewComponent
37 ],
38
39 exports: [
40 VideosComponent
41 ],
42
43 providers: [
44 OverviewService
45 ]
46})
47export class VideosModule { }