diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-23 14:49:20 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-06-23 16:00:49 +0200 |
commit | 1942f11d5ee6926ad93dc1b79fae18325ba5de18 (patch) | |
tree | 3f2a3cd9466a56c419d197ac832a3e9cbc86bec4 /client/src/app/+search/search.module.ts | |
parent | 67ed6552b831df66713bac9e672738796128d33f (diff) | |
download | PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.tar.gz PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.tar.zst PeerTube-1942f11d5ee6926ad93dc1b79fae18325ba5de18.zip |
Lazy load all routes
Diffstat (limited to 'client/src/app/+search/search.module.ts')
-rw-r--r-- | client/src/app/+search/search.module.ts | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/client/src/app/+search/search.module.ts b/client/src/app/+search/search.module.ts new file mode 100644 index 000000000..ee4f07ad1 --- /dev/null +++ b/client/src/app/+search/search.module.ts | |||
@@ -0,0 +1,44 @@ | |||
1 | import { TagInputModule } from 'ngx-chips' | ||
2 | import { NgModule } from '@angular/core' | ||
3 | import { SharedFormModule } from '@app/shared/shared-forms' | ||
4 | import { SharedMainModule } from '@app/shared/shared-main' | ||
5 | import { SharedSearchModule } from '@app/shared/shared-search' | ||
6 | import { SharedUserSubscriptionModule } from '@app/shared/shared-user-subscription' | ||
7 | import { SharedVideoMiniatureModule } from '@app/shared/shared-video-miniature' | ||
8 | import { SearchService } from '../shared/shared-search/search.service' | ||
9 | import { ChannelLazyLoadResolver } from './channel-lazy-load.resolver' | ||
10 | import { SearchFiltersComponent } from './search-filters.component' | ||
11 | import { SearchRoutingModule } from './search-routing.module' | ||
12 | import { SearchComponent } from './search.component' | ||
13 | import { VideoLazyLoadResolver } from './video-lazy-load.resolver' | ||
14 | |||
15 | @NgModule({ | ||
16 | imports: [ | ||
17 | TagInputModule, | ||
18 | |||
19 | SearchRoutingModule, | ||
20 | |||
21 | SharedMainModule, | ||
22 | SharedSearchModule, | ||
23 | SharedFormModule, | ||
24 | SharedUserSubscriptionModule, | ||
25 | SharedVideoMiniatureModule | ||
26 | ], | ||
27 | |||
28 | declarations: [ | ||
29 | SearchComponent, | ||
30 | SearchFiltersComponent | ||
31 | ], | ||
32 | |||
33 | exports: [ | ||
34 | TagInputModule, | ||
35 | SearchComponent | ||
36 | ], | ||
37 | |||
38 | providers: [ | ||
39 | SearchService, | ||
40 | VideoLazyLoadResolver, | ||
41 | ChannelLazyLoadResolver | ||
42 | ] | ||
43 | }) | ||
44 | export class SearchModule { } | ||