Components that are designed to be reusable across multiple parts of an application often implement the _____ lifecycle hook to do cleanup work.

  • ngDoCheck
  • ngOnChanges
  • ngOnDestroy
  • ngOnInit
Components that are designed to be reusable across multiple parts of an application often implement the ngOnDestroy lifecycle hook to do cleanup work, like unsubscribing from observables.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *