diff options
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r-- | client/src/app/app.module.ts | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts index 939af6309..e40b66c5f 100644 --- a/client/src/app/app.module.ts +++ b/client/src/app/app.module.ts | |||
@@ -6,12 +6,16 @@ import { RouterModule } from '@angular/router'; | |||
6 | import { removeNgStyles, createNewHosts } from '@angularclass/hmr'; | 6 | import { removeNgStyles, createNewHosts } from '@angularclass/hmr'; |
7 | 7 | ||
8 | import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; | 8 | import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; |
9 | |||
9 | import { DropdownModule } from 'ng2-bootstrap/components/dropdown'; | 10 | import { DropdownModule } from 'ng2-bootstrap/components/dropdown'; |
10 | import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; | 11 | import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; |
11 | import { PaginationModule } from 'ng2-bootstrap/components/pagination'; | 12 | import { PaginationModule } from 'ng2-bootstrap/components/pagination'; |
12 | import { ModalModule } from 'ng2-bootstrap/components/modal'; | 13 | import { ModalModule } from 'ng2-bootstrap/components/modal'; |
14 | |||
13 | import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; | 15 | import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; |
14 | 16 | ||
17 | import { MetaConfig, MetaModule } from 'ng2-meta'; | ||
18 | |||
15 | /* | 19 | /* |
16 | * Platform and Environment providers/directives/pipes | 20 | * Platform and Environment providers/directives/pipes |
17 | */ | 21 | */ |
@@ -52,6 +56,15 @@ import { | |||
52 | WebTorrentService | 56 | WebTorrentService |
53 | } from './videos'; | 57 | } from './videos'; |
54 | 58 | ||
59 | const metaConfig: MetaConfig = { | ||
60 | //Append a title suffix such as a site name to all titles | ||
61 | //Defaults to false | ||
62 | useTitleSuffix: true, | ||
63 | defaults: { | ||
64 | title: 'PeerTube' | ||
65 | } | ||
66 | }; | ||
67 | |||
55 | // Application wide providers | 68 | // Application wide providers |
56 | const APP_PROVIDERS = [ | 69 | const APP_PROVIDERS = [ |
57 | AppState, | 70 | AppState, |
@@ -117,7 +130,10 @@ const APP_PROVIDERS = [ | |||
117 | ProgressbarModule, | 130 | ProgressbarModule, |
118 | PaginationModule, | 131 | PaginationModule, |
119 | ModalModule, | 132 | ModalModule, |
120 | FileUploadModule | 133 | |
134 | FileUploadModule, | ||
135 | |||
136 | MetaModule.forRoot(metaConfig) | ||
121 | ], | 137 | ], |
122 | providers: [ // expose our Services and Providers into Angular's dependency injection | 138 | providers: [ // expose our Services and Providers into Angular's dependency injection |
123 | ENV_PROVIDERS, | 139 | ENV_PROVIDERS, |