Browse Source

ssr config

feature/ssr-migration-schematic
erdemcaygor 1 year ago
parent
commit
e0ee425bc5
  1. 2
      npm/ng-packs/apps/dev-app/src/app/app.config.ts

2
npm/ng-packs/apps/dev-app/src/app/app.config.ts

@ -1,5 +1,6 @@
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router'; import { provideRouter } from '@angular/router';
import { provideClientHydration, withEventReplay } from '@angular/platform-browser';
import { appRoutes } from './app.routes'; import { appRoutes } from './app.routes';
import { APP_ROUTE_PROVIDER } from './route.provider'; import { APP_ROUTE_PROVIDER } from './route.provider';
@ -35,5 +36,6 @@ export const appConfig: ApplicationConfig = {
provideFeatureManagementConfig(), provideFeatureManagementConfig(),
provideZoneChangeDetection({ eventCoalescing: true }), provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(appRoutes), provideRouter(appRoutes),
provideClientHydration(withEventReplay()),
], ],
}; };

Loading…
Cancel
Save