]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/shared/shared.module.ts
14192232285fb0ece8d305107a015b08ba1c1fdb
[github/Chocobozzz/PeerTube.git] / client / src / app / shared / shared.module.ts
1 import { NgModule } from '@angular/core';
2 import { CommonModule } from '@angular/common';
3 import { HttpModule } from '@angular/http';
4 import { FormsModule, ReactiveFormsModule } from '@angular/forms';
5 import { RouterModule } from '@angular/router';
6
7 import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
8 import { DropdownModule } from 'ng2-bootstrap/components/dropdown';
9 import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
10 import { PaginationModule } from 'ng2-bootstrap/components/pagination';
11 import { ModalModule } from 'ng2-bootstrap/components/modal';
12 import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
13
14 import { AUTH_HTTP_PROVIDERS } from './auth';
15 import { RestExtractor, RestService } from './rest';
16 import { SearchComponent, SearchService } from './search';
17
18 @NgModule({
19 imports: [
20 CommonModule,
21 FormsModule,
22 ReactiveFormsModule,
23 HttpModule,
24 RouterModule,
25
26 DropdownModule,
27 FileUploadModule,
28 ModalModule,
29 PaginationModule,
30 ProgressbarModule
31 ],
32
33 declarations: [
34 BytesPipe,
35 SearchComponent
36 ],
37
38 exports: [
39 CommonModule,
40 FormsModule,
41 ReactiveFormsModule,
42 HttpModule,
43 RouterModule,
44
45 DropdownModule,
46 FileUploadModule,
47 ModalModule,
48 PaginationModule,
49 ProgressbarModule,
50 BytesPipe,
51
52 SearchComponent
53 ],
54
55 providers: [
56 AUTH_HTTP_PROVIDERS,
57 RestExtractor,
58 RestService,
59 SearchService
60 ]
61 })
62 export class SharedModule { }