aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app.module.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/app.module.ts')
-rw-r--r--client/src/app/app.module.ts18
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';
6import { removeNgStyles, createNewHosts } from '@angularclass/hmr'; 6import { removeNgStyles, createNewHosts } from '@angularclass/hmr';
7 7
8import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe'; 8import { BytesPipe } from 'angular-pipes/src/math/bytes.pipe';
9
9import { DropdownModule } from 'ng2-bootstrap/components/dropdown'; 10import { DropdownModule } from 'ng2-bootstrap/components/dropdown';
10import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar'; 11import { ProgressbarModule } from 'ng2-bootstrap/components/progressbar';
11import { PaginationModule } from 'ng2-bootstrap/components/pagination'; 12import { PaginationModule } from 'ng2-bootstrap/components/pagination';
12import { ModalModule } from 'ng2-bootstrap/components/modal'; 13import { ModalModule } from 'ng2-bootstrap/components/modal';
14
13import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload'; 15import { FileUploadModule } from 'ng2-file-upload/ng2-file-upload';
14 16
17import { 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
59const 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
56const APP_PROVIDERS = [ 69const 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,