import { ApplicationConfig, importProvidersFrom } from '@angular/core'; import { provideRouter, withRouterConfig } from '@angular/router'; import { provideAnimations } from '@angular/platform-browser/animations'; import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { App_Route } from './app.routes'; import { ToastrModule } from 'ngx-toastr'; import { provideCharts, withDefaultRegisterables } from 'ng2-charts'; import { authInterceptor } from './core/interceptors/auth.interceptor'; import { errorInterceptor } from './core/interceptors/error.interceptor'; import { loadingInterceptor } from './core/interceptors/loading-interceptor'; export const appConfig: ApplicationConfig = { providers: [ provideRouter(App_Route, withRouterConfig({ onSameUrlNavigation: 'reload' })), provideHttpClient(withInterceptors([authInterceptor, errorInterceptor,loadingInterceptor])), provideAnimations(), provideCharts(withDefaultRegisterables()), importProvidersFrom( ToastrModule.forRoot({ timeOut: 1500, closeButton: true, progressBar: true, }), ), ], };