dynamic runOutsideAngular(dynamic fn())

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 Angular's error handling.

Any future tasks or microtasks scheduled from within this function will continue executing from outside of the Angular zone.

Use #run to reenter the Angular zone and do work that updates the application model.

Source

dynamic runOutsideAngular(dynamic fn()) {
  return this._zoneImpl.runOuter(fn);
}