diff --git a/modules/@angular/core/src/linker/view_ref.ts b/modules/@angular/core/src/linker/view_ref.ts index 9835fe95c1..24948f6d9c 100644 --- a/modules/@angular/core/src/linker/view_ref.ts +++ b/modules/@angular/core/src/linker/view_ref.ts @@ -17,7 +17,7 @@ import {AppView} from './view'; /** * @stable */ -export abstract class ViewRef { +export abstract class ViewRef extends ChangeDetectorRef { get destroyed(): boolean { return unimplemented(); } abstract onDestroy(callback: Function): any /** TODO #9100 */; diff --git a/tools/public_api_guard/core/index.d.ts b/tools/public_api_guard/core/index.d.ts index 9c98bcd23b..4e390cf629 100644 --- a/tools/public_api_guard/core/index.d.ts +++ b/tools/public_api_guard/core/index.d.ts @@ -1000,7 +1000,7 @@ export declare enum ViewEncapsulation { } /** @stable */ -export declare abstract class ViewRef { +export declare abstract class ViewRef extends ChangeDetectorRef { destroyed: boolean; abstract onDestroy(callback: Function): any; }