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 @angular/core/index, defined in @angular/core/src/linker/view_ref.ts