mode_edit codeAPI / @angular/coreViewReflinkclass 稳定abstract class ViewRef extends ChangeDetectorRef { abstract get destroyed: boolean abstract destroy(): void abstract onDestroy(callback: Function): any // 继承自 core/ChangeDetectorRef abstract markForCheck(): void abstract detach(): void abstract detectChanges(): void abstract checkNoChanges(): void abstract reattach(): void }子类link EmbeddedViewRef 属性link属性名类型说明destroyedboolean只读方法linkdestroy() linkmode_edit codeDestroys the view and all of the data structures associated with it.abstract destroy(): void参数没有参数。返回值voidonDestroy() linkmode_edit codeabstract onDestroy(callback: Function): any参数callbackType: Function.返回值any