-
Notifications
You must be signed in to change notification settings - Fork 23
/
app.module.ts
49 lines (48 loc) · 1.8 KB
/
app.module.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouterModule } from '@angular/router';
import { UploadxModule } from 'ngx-uploadx';
import { AppComponent } from './app.component';
import { appRoutes } from './app.routes';
import { serverUrl } from './config';
import { DirectiveWayComponent } from './directive-way/directive-way.component';
import { DownloadComponent } from './file-generator/download/download.component';
import { FileGeneratorComponent } from './file-generator/file-generator.component';
import { AComponent } from './multi-service/a/a.component';
import { BComponent } from './multi-service/b/b.component';
import { MultiServiceComponent } from './multi-service/multi-service.component';
import { MultipleDirectiveComponent } from './multiple-directive/multiple-directive.component';
import { OnPushComponent } from './on-push/on-push.component';
import { ServiceCodeWayComponent } from './service-code-way/service-code-way.component';
import { ServiceWayComponent } from './service-way/service-way.component';
import { TusComponent } from './tus/tus.component';
@NgModule({
declarations: [
AComponent,
AppComponent,
BComponent,
DirectiveWayComponent,
DownloadComponent,
FileGeneratorComponent,
MultipleDirectiveComponent,
MultiServiceComponent,
OnPushComponent,
ServiceCodeWayComponent,
ServiceWayComponent,
TusComponent
],
imports: [
RouterModule.forRoot(appRoutes, {}),
BrowserModule,
UploadxModule.withConfig({
allowedTypes: 'image/*,video/*',
endpoint: `${serverUrl}/files?uploadType=uploadx`,
headers: { 'ngsw-bypass': 'true' },
retryConfig: { maxAttempts: 5 }
})
],
providers: [],
bootstrap: [AppComponent],
exports: []
})
export class AppModule {}