[angular-18] app.module: replace provider withFetch with withInterceptorsFromDi
This commit is contained in:
parent
75b501f4fa
commit
9eb5a37089
|
@ -1,7 +1,7 @@
|
||||||
import {APP_ID, NgModule} from '@angular/core';
|
import {APP_ID, NgModule} from '@angular/core';
|
||||||
import {FormsModule} from '@angular/forms';
|
import {FormsModule} from '@angular/forms';
|
||||||
import {CommonModule} from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import {HTTP_INTERCEPTORS, provideHttpClient, withFetch} from "@angular/common/http";
|
import {HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi} from "@angular/common/http";
|
||||||
import {BrowserModule} from '@angular/platform-browser';
|
import {BrowserModule} from '@angular/platform-browser';
|
||||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||||
import {AppComponent} from './app.component';
|
import {AppComponent} from './app.component';
|
||||||
|
@ -52,7 +52,7 @@ import {HelperModule} from "./openaireLibrary/utils/helper/helper.module";
|
||||||
},
|
},
|
||||||
[{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }],
|
[{ provide: HTTP_INTERCEPTORS, useClass: TimeoutInterceptor, multi: true }],
|
||||||
[{ provide: DEFAULT_TIMEOUT, useValue: 30000 }],
|
[{ provide: DEFAULT_TIMEOUT, useValue: 30000 }],
|
||||||
provideHttpClient(withFetch())
|
provideHttpClient(withInterceptorsFromDi())
|
||||||
] })
|
] })
|
||||||
//
|
//
|
||||||
export class AppModule {
|
export class AppModule {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit cd782d4a68a67dcba4d5d1bbce7ee737ad1f3871
|
Subproject commit 9c93a1e306ce7abd43e3c552a2fff0240ae2f04c
|
|
@ -1 +1 @@
|
||||||
Subproject commit a88e24accc23599b43577994011e424eb693e817
|
Subproject commit 3c9fbe2a9c606ebaec0749cf46f819020d76f6cf
|
Loading…
Reference in New Issue