The Wayback Machine - https://web.archive.org/web/20240920155612/https://angular.dev/api/core/OnDestroy/
@angular/core

OnDestroy

interface

A lifecycle hook that is called when a directive, pipe, or service is destroyed. Use for any custom cleanup that needs to occur when the instance is destroyed.

  
    interface OnDestroy {}
  
  
Jump to details
HTTPS · web.archive.org
← Home