Disables APP_BASE_HREF provider

This commit is contained in:
Aaron Louie 2020-05-26 10:01:28 -04:00
parent e70a8a30af
commit cd51cf3b5b
2 changed files with 2 additions and 2 deletions

View File

@ -71,7 +71,7 @@ const routes: Routes = [
exports: [RouterModule],
providers: [
{provide: 'APP_ENVIRONMENT', useClass: ThisEnvironment},
{provide: APP_BASE_HREF, useValue: environment.baseHref},
// {provide: APP_BASE_HREF, useValue: environment.baseHref},
]
})
export class AppRoutingModule {

View File

@ -130,7 +130,7 @@ export class ThisEnvironment implements AppEnvironment {
providers: [
{provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: {appearance: 'outline'}},
{provide: 'APP_ENVIRONMENT', useClass: ThisEnvironment},
{provide: APP_BASE_HREF, useValue: environment.baseHref},
// {provide: APP_BASE_HREF, useValue: environment.baseHref},
{provide: HTTP_INTERCEPTORS, useClass: AuthInterceptor, multi: true},
{provide: HTTP_INTERCEPTORS, useClass: ErrorInterceptor, multi: true},
]