From 03d7280e07e4786545aede28f74dd47e46cf9994 Mon Sep 17 00:00:00 2001 From: Claudiu Farcas Date: Tue, 28 Apr 2026 20:28:55 +0300 Subject: [PATCH] @angular/core migration - bootstrap-options-migration Migrates deprecated bootstrap options to providers. --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index ce1c610..9660ff3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,5 +1,5 @@ import { bootstrapApplication } from '@angular/platform-browser'; -import { enableProdMode, importProvidersFrom } from '@angular/core'; +import { enableProdMode, importProvidersFrom, provideZoneChangeDetection } from '@angular/core'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { AngularFireModule } from '@angular/fire/compat'; @@ -28,7 +28,7 @@ if (getApps().length === 0) { bootstrapApplication(AppComponent, { providers: [ - importProvidersFrom( + provideZoneChangeDetection(),importProvidersFrom( BrowserAnimationsModule, FormsModule, ReactiveFormsModule,