[ Web Proxy ]
URL:
Viewing: https://angular.dev/api/core/provideZoneChangeDetection [Back]  [Original]

provideZoneChangeDetection Angular Skip to main content
menu
close
more_horiz
menuAPI
@angular/core

provideZoneChangeDetection

function
stable

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

bootstrapApplicationNgZoneOptions

On this page

    arrow_upward_alt Back to the top

    API

    @paramoptionsNgZoneOptions | undefined

    Description

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

    Add this provider to use NgZone/ZoneJS-based change detection and 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

    Web Proxy Viewer  |  New URL  |  Original Page