Which lifecycle hook is used to clean up subscriptions?
- A ngOnInit
- B ngOnChanges
- C ngOnDestroy
- D ngDoCheck
Answer
ngOnDestroy
Failing to unsubscribe in ngOnDestroy keeps the component and everything it references alive, which is the most common Angular memory leak.





