Q. Which Angular lifecycle hook is called just before Angular destroys the component?
β
Correct Answer: (A)
ngOnDestroy
Explanation: ngOnDestroy is used for cleanup like unsubscribing.