import type { ApplicationConfig } from '@angular/core'; import { importProvidersFrom, provideZoneChangeDetection } from '@angular/core'; import { provideRouter, withInMemoryScrolling } from '@angular/router'; import { BrowserModule, provideClientHydration, withEventReplay } from '@angular/platform-browser'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { providers: [ provideZoneChangeDetection({ eventCoalescing: true }), provideRouter( routes, withInMemoryScrolling({ anchorScrolling: 'enabled', scrollPositionRestoration: 'top', }), ), provideClientHydration(withEventReplay()), importProvidersFrom(BrowserModule), ], };