Bootstrap

API zone

ZoneWrapper

class

A utility class that provides methods to run functions inside or outside of Angular's NgZone. This can be useful for optimizing performance by avoiding unnecessary change detection cycles.

Methods
ngZoneRun

ngZoneRun<T>(fn): T

Run the input function synchronously within the Angular zone

Type Parameters

T

Parameters

fn

a function to run

Returns

T

the value returned by the function