diff --git a/.nx/cache/nx_files.nxt b/.nx/cache/nx_files.nxt index 682524b..062af1d 100644 Binary files a/.nx/cache/nx_files.nxt and b/.nx/cache/nx_files.nxt differ diff --git a/angular.json b/angular.json index 2532782..15601e4 100644 --- a/angular.json +++ b/angular.json @@ -20,7 +20,7 @@ "outputPath": "dist/ng-realworld-ssr", "index": "src/index.html", "browser": "src/main.ts", - "polyfills": [], + "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": ["src/favicon.ico", "src/assets", "src/manifest.webmanifest", "src/manifest.webmanifest"], diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 80d910e..14beff0 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,4 +1,4 @@ -import { ApplicationConfig, isDevMode, provideExperimentalZonelessChangeDetection } from '@angular/core'; +import { ApplicationConfig, isDevMode } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; import { provideClientHydration } from '@angular/platform-browser'; @@ -16,7 +16,7 @@ export const appConfig: ApplicationConfig = { enabled: !isDevMode(), registrationStrategy: 'registerWhenStable:30000', }), - provideExperimentalZonelessChangeDetection(), + // TODO - take out zone.js later -- provideExperimentalZonelessChangeDetection(), [{ provide: StateService, useFactory: () => new StateService() }], ], };