function
Provides NgZone
-based change detection for the application bootstrapped using bootstrapApplication
.
provideZoneChangeDetection(options?: NgZoneOptions): EnvironmentProviders
options | NgZoneOptions | Optional. Default is |
bootstrapApplication
NgZoneOptions
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...
bootstrapApplication(MyApp, {providers: [ provideZoneChangeDetection({eventCoalescing: true}), ]});
© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/api/core/provideZoneChangeDetection