From 587c119c7523440ddc7b9037b3494d9f9c0942b8 Mon Sep 17 00:00:00 2001 From: PatrickJS Date: Sat, 16 Apr 2016 11:09:30 -0700 Subject: [PATCH] feat(NgZone): isStable Closes #8108 --- modules/@angular/core/src/zone/ng_zone.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/@angular/core/src/zone/ng_zone.ts b/modules/@angular/core/src/zone/ng_zone.ts index 850b829aac..1e6e3223f9 100644 --- a/modules/@angular/core/src/zone/ng_zone.ts +++ b/modules/@angular/core/src/zone/ng_zone.ts @@ -176,6 +176,11 @@ export class NgZone { * Notify that an error has been delivered. */ get onError(): EventEmitter { return this._onErrorEvents; } + + /** + * Whether there are no outstanding microtasks or microtasks. + */ + get isStable(): boolean { return this._isStable; } /** * Whether there are any outstanding microtasks.