Skip to content

Commit 09638ec

Browse files
angular-bootstrapatscott
authored andcommitted
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 #67498 (cherry picked from commit 1969338)
1 parent ab35383 commit 09638ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)