class
Represents an Angular view.
abstract class ViewRef extends ChangeDetectorRef { abstract destroyed: boolean abstract destroy(): void abstract onDestroy(callback: Function): any // inherited from core/ChangeDetectorRef abstract markForCheck(): void abstract detach(): void abstract detectChanges(): void abstract checkNoChanges(): void abstract reattach(): void }
Property | Description |
---|---|
abstract destroyed: boolean | Read-Only Reports whether this view has been destroyed. |
destroy() |
---|
Destroys this view and all of the data structures associated with it. |
|
onDestroy() | |||
---|---|---|---|
A lifecycle hook that provides additional developer-defined cleanup functionality for views. | |||
|
callback | Function | A handler function that cleans up developer-defined data associated with a view. Called when the |
any
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v12.angular.io/api/core/ViewRef