]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+videos/videos.module.ts
Lazy load all routes
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / videos.module.ts
1 import { NgModule } from '@angular/core'
2 import { SharedFormModule } from '@app/shared/shared-forms'
3 import { SharedGlobalIconModule } from '@app/shared/shared-icons'
4 import { SharedMainModule } from '@app/shared/shared-main'
5 import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription'
6 import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature'
7 import { OverviewService } from './video-list'
8 import { VideoOverviewComponent } from './video-list/overview/video-overview.component'
9 import { VideoLocalComponent } from './video-list/video-local.component'
10 import { VideoMostLikedComponent } from './video-list/video-most-liked.component'
11 import { VideoRecentlyAddedComponent } from './video-list/video-recently-added.component'
12 import { VideoTrendingComponent } from './video-list/video-trending.component'
13 import { VideoUserSubscriptionsComponent } from './video-list/video-user-subscriptions.component'
14 import { VideosRoutingModule } from './videos-routing.module'
15 import { 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 })
47 export class VideosModule { }