feat(core): expose destroy() method on ViewRef

This commit is contained in:
Pawel Kozlowski
2016-11-24 11:32:28 +01:00
committed by vsavkin
parent be3784c957
commit 808275a9d5
2 changed files with 6 additions and 6 deletions

View File

@ -399,7 +399,6 @@ export declare class ElementRef {
export declare abstract class EmbeddedViewRef<C> extends ViewRef {
context: C;
rootNodes: any[];
abstract destroy(): void;
}
/** @stable */
@ -1002,6 +1001,7 @@ export declare enum ViewEncapsulation {
/** @stable */
export declare abstract class ViewRef extends ChangeDetectorRef {
destroyed: boolean;
abstract destroy(): void;
abstract onDestroy(callback: Function): any;
}