11import { ApplicationConfig , importProvidersFrom } from '@angular/core' ;
2- import { BrowserModule , provideClientHydration } from '@angular/platform-browser' ;
2+ import { provideClientHydration } from '@angular/platform-browser' ;
33import { AppRoutingModule , routes } from './app-routing.module' ;
4- import { CollapseModule } from 'ngx-bootstrap/collapse' ;
5- import { BsDropdownModule } from 'ngx-bootstrap/dropdown' ;
64import { TranslateLoader , TranslateModule , TranslateService } from '@ngx-translate/core' ;
75import { translateBrowserLoaderFactory } from './core/utils/translate-browser.loader' ;
8- import { HttpClient , provideHttpClient , withInterceptorsFromDi } from '@angular/common/http' ;
6+ import { HttpClient , provideHttpClient } from '@angular/common/http' ;
97import { LocalizeParser , LocalizeRouterModule , LocalizeRouterSettings } from '@gilsdav/ngx-translate-router' ;
108import { localizeBrowserLoaderFactory } from './core/utils/localize-browser.loader' ;
119import { Location } from '@angular/common' ;
@@ -14,7 +12,7 @@ import { provideAnimations } from '@angular/platform-browser/animations';
1412export const appConfig : ApplicationConfig = {
1513 providers : [
1614 provideClientHydration ( ) ,
17- importProvidersFrom ( BrowserModule , AppRoutingModule , CollapseModule . forRoot ( ) , BsDropdownModule . forRoot ( ) , TranslateModule . forRoot ( {
15+ importProvidersFrom ( AppRoutingModule , TranslateModule . forRoot ( {
1816 defaultLanguage : 'en' ,
1917 loader : {
2018 provide : TranslateLoader ,
@@ -30,6 +28,6 @@ export const appConfig: ApplicationConfig = {
3028 initialNavigation : true ,
3129 } ) ) ,
3230 provideAnimations ( ) ,
33- provideHttpClient ( withInterceptorsFromDi ( ) ) ,
31+ provideHttpClient ( ) ,
3432 ] ,
3533} ;
0 commit comments