Which lifecycle hook is used to clean up subscriptions?
Correct answer
ngOnDestroy
Explanation
ngOnDestroy is used to clean up resources like subscriptions.
Update: Admin added a tag on this question
Topics
By Admin · · 24 views