import { ApplicationConfig, isDevMode, provideBrowserGlobalErrorListeners } from '@angular/core'; import { provideRouter, withInMemoryScrolling } from '@angular/router'; import { provideHttpClient, withInterceptors } from '@angular/common/http'; import { provideServiceWorker } from '@angular/service-worker'; import { routes } from './app.routes'; import { authInterceptor } from './core/http/auth-interceptor'; import { errorInterceptor } from './core/http/error-interceptor'; export const appConfig: ApplicationConfig = { providers: [ provideBrowserGlobalErrorListeners(), provideRouter( routes, withInMemoryScrolling({ anchorScrolling: 'enabled', scrollPositionRestoration: 'enabled', }), ), provideHttpClient(withInterceptors([authInterceptor, errorInterceptor])), provideServiceWorker('ngsw-worker.js', { enabled: !isDevMode(), registrationStrategy: 'registerWhenStable:30000', }), ], };