Spec-Zone.ru › Angular

provideZoneChangeDetection

Provides NgZone-based change detection for the application bootstrapped using bootstrapApplication.

bootstrapApplicationNgZoneOptions

API

function provideZoneChangeDetection(
  options?: NgZoneOptions | undefined,
): EnvironmentProviders;
@paramoptionsNgZoneOptions | undefined
@returnsEnvironmentProviders

Description

Provides NgZone-based change detection for the application bootstrapped using bootstrapApplication.

Add this provider to use NgZone/ZoneJS-based change detection and configure options like eventCoalescing in the NgZone.

If you need this provider function in an NgModule-based application, pass it as applicationProviders to bootstrapModule().

Usage Notes

bootstrapApplication(MyApp, {providers: [
  provideZoneChangeDetection({eventCoalescing: true}),
]});

Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/core/provideZoneChangeDetection

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API