• Overview
@angular/core

provideZoneChangeDetection

function
stable

Provides NgZone-based change detection for the application bootstrapped using bootstrapApplication.

API

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.

If you need this provider function in an NgModule-based application, pass it as applicationProviders to bootstrapModule().

Usage Notes

bootstrapApplication(MyApp, {providers: [  provideZoneChangeDetection({eventCoalescing: true}),]});
Jump to details