Skip to content

Commit

Permalink
Use fetch to provide httpClient
Browse files Browse the repository at this point in the history
  • Loading branch information
max-lt committed Feb 19, 2024
1 parent 30b9477 commit 38b4c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { routes } from './app.routes';
import { ViewportScroller } from '@angular/common';
import { provideClientHydration } from '@angular/platform-browser';
import { GtagService } from './services/gtag.service';
import { provideHttpClient } from '@angular/common/http';
import { provideHttpClient, withFetch } from '@angular/common/http';

export const appConfig: ApplicationConfig = {
providers: [
Expand All @@ -28,7 +28,7 @@ export const appConfig: ApplicationConfig = {
withEnabledBlockingInitialNavigation()
),
provideClientHydration(),
provideHttpClient(),
provideHttpClient(withFetch()),
GtagService,
{
provide: APP_INITIALIZER,
Expand Down

0 comments on commit 38b4c96

Please sign in to comment.