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