provideZoneChangeDetection
Provides NgZone
-based change detection for the application bootstrapped using
bootstrapApplication
.
API
function provideZoneChangeDetection( options?: NgZoneOptions | undefined): EnvironmentProviders;
provideZoneChangeDetection
Provides NgZone
-based change detection for the application bootstrapped using
bootstrapApplication
.
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.
EnvironmentProviders
Description
Provides NgZone
-based change detection for the application bootstrapped using
bootstrapApplication
.
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.
Usage Notes
bootstrapApplication(MyApp, {providers: [ provideZoneChangeDetection({eventCoalescing: true}),]});