Fixed APP_BASE_HREF.
This commit is contained in:
parent
b6c79d32a7
commit
805233d73b
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
import { ClipboardModule } from '@angular/cdk/clipboard';
|
import { ClipboardModule } from '@angular/cdk/clipboard';
|
||||||
|
import { APP_BASE_HREF } from '@angular/common';
|
||||||
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
import { HttpClientModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
|
|
@ -51,7 +52,11 @@ curray();
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
ClipboardModule,
|
ClipboardModule,
|
||||||
],
|
],
|
||||||
providers: [FileSizePipe, { provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true }],
|
providers: [
|
||||||
|
FileSizePipe,
|
||||||
|
{ provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true },
|
||||||
|
{ provide: APP_BASE_HREF, useValue: (window as any)['_app_base'] || '/' },
|
||||||
|
],
|
||||||
bootstrap: [AppComponent],
|
bootstrap: [AppComponent],
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue