[angular-18]: Replace provider withFetch with withInterceptorsFromDi.
This commit is contained in:
parent
800a326abe
commit
5deac029e6
|
@ -1,7 +1,13 @@
|
|||
import {APP_ID, NgModule} from '@angular/core';
|
||||
import {FormsModule} from '@angular/forms';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {HTTP_INTERCEPTORS, provideHttpClient, withFetch} from "@angular/common/http";
|
||||
import {
|
||||
HTTP_INTERCEPTORS,
|
||||
provideHttpClient,
|
||||
withFetch,
|
||||
withInterceptors,
|
||||
withInterceptorsFromDi
|
||||
} from "@angular/common/http";
|
||||
import {BrowserModule, provideClientHydration, withHttpTransferCacheOptions} from '@angular/platform-browser';
|
||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {AppComponent} from './app.component';
|
||||
|
@ -56,7 +62,7 @@ import {HelperModule} from "./openaireLibrary/utils/helper/helper.module";
|
|||
declarations: [AppComponent, OpenaireErrorPageComponent],
|
||||
exports: [AppComponent],
|
||||
providers: [
|
||||
provideHttpClient(withFetch()),
|
||||
provideHttpClient(withInterceptorsFromDi()),
|
||||
{provide: RouteReuseStrategy, useClass: CustomRouteReuseStrategy},
|
||||
{provide: APP_ID, useValue: 'monitor-dashboard'},
|
||||
AdminLoginGuard, AdminDashboardGuard, LoginGuard,
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit e543d1f0f7635aad9f2189b9526e83c459ee7ea9
|
||||
Subproject commit 9c93a1e306ce7abd43e3c552a2fff0240ae2f04c
|
Loading…
Reference in New Issue