Skip to content

Commit

Permalink
fix(citrus-simulator-ui): add provider argument to make sure the http…
Browse files Browse the repository at this point in the history
…Interceptors from DI will work again with Angular v18
  • Loading branch information
muellerfluri committed Sep 26, 2024
1 parent 912991b commit 789804d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions simulator-ui/src/main/webapp/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { registerLocaleData } from '@angular/common';
import { provideHttpClient } from '@angular/common/http';
import {HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi} from '@angular/common/http';
import locale from '@angular/common/locales/en';
import { LOCALE_ID, NgModule } from '@angular/core';
import { BrowserModule, Title } from '@angular/platform-browser';
Expand Down Expand Up @@ -41,7 +41,9 @@ import MainModule from './layouts/main/main.module';
TranslationModule,
],
providers: [
provideHttpClient(),
provideHttpClient(
withInterceptorsFromDi(),
),
Title,
{ provide: LOCALE_ID, useValue: 'en' },
{ provide: NgbDateAdapter, useClass: NgbDateDayjsAdapter },
Expand Down

0 comments on commit 789804d

Please sign in to comment.