Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
This site is no longer updated.Head to Angular.devHome
/

This is the archived documentation for Angular v17. Please visit angular.dev to see this page for the current version of Angular.

provideZoneChangeDetection

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

See more...

      
      provideZoneChangeDetection(options?: NgZoneOptions): EnvironmentProviders
    
Parameters
options NgZoneOptions

Optional. Default is undefined.

Returns

EnvironmentProviders

See also

Description

NgZone is already provided in applications by default. This provider allows you to configure options like eventCoalescing in the NgZone. This provider is not available for platformBrowser().bootstrapModule, which uses BootstrapOptions instead.

Further information is available in the Usage Notes...

Usage notes

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