diff --git a/libs/frontend/root/src/config/app.config.ts b/libs/frontend/root/src/config/app.config.ts index 4320239..1c7e2fb 100644 --- a/libs/frontend/root/src/config/app.config.ts +++ b/libs/frontend/root/src/config/app.config.ts @@ -3,9 +3,12 @@ import { PLATFORM_ID, provideZoneChangeDetection, } from '@angular/core'; -import { provideRouter } from '@angular/router'; +import { provideRouter, withViewTransitions } from '@angular/router'; import { appRoutes } from './app.routes'; -import { provideClientHydration } from '@angular/platform-browser'; +import { + provideClientHydration, + withHttpTransferCacheOptions, +} from '@angular/platform-browser'; import { provideAnimationsAsync } from '@angular/platform-browser/animations/async'; import { provideHttpClient, withFetch } from '@angular/common/http'; import { BASE_URL } from '@app/frontend-utils'; @@ -13,9 +16,13 @@ import { isPlatformBrowser } from '@angular/common'; export const appConfig: ApplicationConfig = { providers: [ - provideClientHydration(), + provideClientHydration( + withHttpTransferCacheOptions({ + includePostRequests: true, + }), + ), provideZoneChangeDetection({ eventCoalescing: true }), - provideRouter(appRoutes), + provideRouter(appRoutes, withViewTransitions()), provideAnimationsAsync(), provideHttpClient(withFetch()), { diff --git a/libs/frontend/root/src/root/root.component.html b/libs/frontend/root/src/root/root.component.html index 5d5edfd..b9402da 100644 --- a/libs/frontend/root/src/root/root.component.html +++ b/libs/frontend/root/src/root/root.component.html @@ -3,7 +3,7 @@ -