Class Overviewclass ViewRef extends ChangeDetectorRef {destroy() : voiddestroyed : booleanonDestroy(callback: Function) : any}Class Description Class Detailsdestroy() : void Destroys the view and all of the data structures associated with it. destroyed : boolean onDestroy(callback: Function) : any exported from core/index, defined in core/src/linker/view_ref.ts