20 lines
652 B
TypeScript
20 lines
652 B
TypeScript
import { ApplicationConfig, provideBrowserGlobalErrorListeners, provideZonelessChangeDetection } from '@angular/core';
|
|
import { provideRouter, withInMemoryScrolling } from '@angular/router';
|
|
|
|
import { routes } from './app.routes';
|
|
import { provideClientHydration, withEventReplay } from '@angular/platform-browser';
|
|
|
|
export const appConfig: ApplicationConfig = {
|
|
providers: [
|
|
provideBrowserGlobalErrorListeners(),
|
|
provideRouter(
|
|
routes,
|
|
withInMemoryScrolling({
|
|
anchorScrolling: 'enabled',
|
|
scrollPositionRestoration: 'enabled'
|
|
})
|
|
),
|
|
provideClientHydration(withEventReplay())
|
|
]
|
|
};
|