MCPcopy Create free account
hub / github.com/angular/angular / NoopNgZone

Class NoopNgZone

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

Source from the content-addressed store, hash-verified

547 * to framework to perform rendering.
548 */
549export class NoopNgZone implements NgZone {
550 readonly hasPendingMicrotasks = false;
551 readonly hasPendingMacrotasks = false;
552 readonly isStable = true;
553 readonly onUnstable = new EventEmitter<any>();
554 readonly onMicrotaskEmpty = new EventEmitter<any>();
555 readonly onStable = new EventEmitter<any>();
556 readonly onError = new EventEmitter<any>();
557
558 run<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any): T {
559 return fn.apply(applyThis, applyArgs);
560 }
561
562 runGuarded<T>(fn: (...args: any[]) => any, applyThis?: any, applyArgs?: any): T {
563 return fn.apply(applyThis, applyArgs);
564 }
565
566 runOutsideAngular<T>(fn: (...args: any[]) => T): T {
567 return fn();
568 }
569
570 runTask<T>(fn: (...args: any[]) => T, applyThis?: any, applyArgs?: any, name?: string): T {
571 return fn.apply(applyThis, applyArgs);
572 }
573}
574
575function shouldBeIgnoredByZone(applyArgs: unknown): boolean {
576 return hasApplyArgsData(applyArgs, '__ignore_ng_zone__');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected