Files
Personal-Portfolio-Website/src/app/app.config.ts
T
2026-04-24 18:19:54 +02:00

22 lines
723 B
TypeScript

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),
],
};