mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
This updates tests and examples only to prepare for zoneless by default. These changes were identified and made as part of #63382. Anything that failed gets `provideZoneChangeDetection` unless the fixes were easily and quickly determined. It also adds the zoneless provider to the `initTestEnvironment` calls for tests in this repo to prevent regressions before #63382 is merged. PR Close #63668
17 lines
532 B
TypeScript
17 lines
532 B
TypeScript
import {NgModule, provideZoneChangeDetection} from '@angular/core';
|
|
import {
|
|
BrowserModule,
|
|
provideClientHydration,
|
|
withIncrementalHydration,
|
|
} from '@angular/platform-browser';
|
|
|
|
import {AppRoutingModule} from './app-routing.module';
|
|
import {AppComponent} from './app.component';
|
|
|
|
@NgModule({
|
|
declarations: [AppComponent],
|
|
imports: [BrowserModule, AppRoutingModule],
|
|
providers: [provideZoneChangeDetection(), provideClientHydration(withIncrementalHydration())],
|
|
bootstrap: [AppComponent],
|
|
})
|
|
export class AppModule {}
|