Skip to content

Commit c453f5d

Browse files
timonkrebspkozlowski-opensource
authored andcommitted
docs(core): fix eventCoalescing comment (#57097)
PR Close #57097
1 parent f3c388e commit c453f5d

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

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

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,13 @@ export interface NgZoneOptions {
189189
*
190190
* When button is clicked, because of the event bubbling, both
191191
* event handlers will be called and 2 change detections will be
192-
* triggered. We can coalesce such kind of events to only trigger
192+
* triggered. We can coalesce such kind of events to trigger
193193
* change detection only once.
194194
*
195-
* By default, this option will be false. So the events will not be
196-
* coalesced and the change detection will be triggered multiple times.
197-
* And if this option be set to true, the change detection will be
198-
* triggered async by scheduling a animation frame. So in the case above,
199-
* the change detection will only be triggered once.
195+
* By default, this option is set to false, meaning events will
196+
* not be coalesced, and change detection will be triggered multiple times.
197+
* If this option is set to true, change detection will be triggered
198+
* once in the scenario described above.
200199
*/
201200
eventCoalescing?: boolean;
202201

0 commit comments

Comments
 (0)