mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
parent
f3c388ecda
commit
c453f5dc2f
1 changed files with 5 additions and 6 deletions
|
|
@ -189,14 +189,13 @@ export interface NgZoneOptions {
|
|||
*
|
||||
* When button is clicked, because of the event bubbling, both
|
||||
* event handlers will be called and 2 change detections will be
|
||||
* triggered. We can coalesce such kind of events to only trigger
|
||||
* triggered. We can coalesce such kind of events to trigger
|
||||
* change detection only once.
|
||||
*
|
||||
* By default, this option will be false. So the events will not be
|
||||
* coalesced and the change detection will be triggered multiple times.
|
||||
* And if this option be set to true, the change detection will be
|
||||
* triggered async by scheduling a animation frame. So in the case above,
|
||||
* the change detection will only be triggered once.
|
||||
* By default, this option is set to false, meaning events will
|
||||
* not be coalesced, and change detection will be triggered multiple times.
|
||||
* If this option is set to true, change detection will be triggered
|
||||
* once in the scenario described above.
|
||||
*/
|
||||
eventCoalescing?: boolean;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue