Skip to content

Commit b7b502c

Browse files
docs(core): clarify provideZoneChangeDetection usage in v21+
Clarify that provideZoneChangeDetection() is used to opt applications into NgZone/ZoneJS-based change detection and to configure NgZone options such as eventCoalescing. Fixes angular#67498
1 parent 759ee22 commit b7b502c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/change_detection/scheduling/ng_zone_scheduling.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,8 @@ export function internalProvideZoneChangeDetection({
134134
* Provides `NgZone`-based change detection for the application bootstrapped using
135135
* `bootstrapApplication`.
136136
*
137-
* `NgZone` is already provided in applications by default. This provider allows you to configure
138-
* options like `eventCoalescing` in the `NgZone`.
137+
* Add this provider to use `NgZone`/ZoneJS-based change detection and configure options like
138+
* `eventCoalescing` in the `NgZone`.
139139
*
140140
* If you need this provider function in an NgModule-based application, pass it as `applicationProviders` to `bootstrapModule()`.
141141
*

0 commit comments

Comments
 (0)