MCPcopy
hub / github.com/angular/angular / runOutsideAngular

Method runOutsideAngular

packages/core/src/zone/ng_zone.ts:281–283  ·  view source on GitHub ↗

* Executes the `fn` function synchronously in Angular's parent zone and returns value returned by * the function. * * Running functions via #runOutsideAngular allows you to escape Angular's zone and do * work that * doesn't trigger Angular change-detection or is subject to Ang

(fn: (...args: any[]) => T)

Source from the content-addressed store, hash-verified

279 * Use {@link #run} to reenter the Angular zone and do work that updates the application model.
280 */
281 runOutsideAngular<T>(fn: (...args: any[]) => T): T {
282 return (this as any as NgZonePrivate)._outer.run(fn);
283 }
284}
285
286const EMPTY_PAYLOAD = {};

Callers 15

ngswAppInitializerFunction · 0.45
ngOnInitMethod · 0.45
ngOnInitMethod · 0.45
constructorMethod · 0.45
ng_zone_spec.tsFile · 0.45
commonTestsFunction · 0.45
error_handler.tsFile · 0.45
_watchAngularEventsMethod · 0.45
scheduleCheckNoChangesFunction · 0.45
notifyMethod · 0.45

Implementers 1

NoopNgZonepackages/core/src/zone/ng_zone.ts

Calls 1

runMethod · 0.65

Tested by

no test coverage detected