diff --git a/angular.json b/angular.json index f8a2a3d5..de42ac0d 100644 --- a/angular.json +++ b/angular.json @@ -21,7 +21,6 @@ "outputPath": "dist/csss-ng-frontend", "index": "src/index.html", "browser": "src/main.ts", - "polyfills": ["zone.js"], "tsConfig": "tsconfig.app.json", "inlineStyleLanguage": "scss", "assets": [ @@ -82,7 +81,6 @@ "test": { "builder": "@angular/build:karma", "options": { - "polyfills": ["zone.js", "zone.js/testing"], "tsConfig": "tsconfig.spec.json", "inlineStyleLanguage": "scss", "assets": [ diff --git a/src/app/app.config.ts b/src/app/app.config.ts index 6c6ef603..00073fca 100644 --- a/src/app/app.config.ts +++ b/src/app/app.config.ts @@ -1,8 +1,8 @@ -import { ApplicationConfig } from '@angular/core'; +import { ApplicationConfig, provideZonelessChangeDetection } from '@angular/core'; import { provideRouter } from '@angular/router'; import { routes } from './app.routes'; export const appConfig: ApplicationConfig = { - providers: [provideRouter(routes)] + providers: [provideZonelessChangeDetection(), provideRouter(routes)] };