ViewRef
表示一个 Angular 视图。
Represents an Angular view.
abstract class ViewRef extends ChangeDetectorRef {
abstract 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
}
参见
属性
属性 | 说明 |
---|---|
abstract destroyed: boolean | 只读 报告此视图是否已被销毁。 Reports whether this view has been destroyed. |
方法
销毁该视图以及与之关联的所有数据结构。 Destroys this view and all of the data structures associated with it. |
参数没有参数。 返回值
|
生命周期钩子,为视图提供其他由开发人员定义的清理功能。 A lifecycle hook that provides additional developer-defined cleanup functionality for views. |