1

What does `ngOnDestroy()` lifecycle hook do?

Correct Answer: Cleans up before the component is removed

Make the most of this question

This page focuses on one Angular MCQs question from Programming. After checking the answer, return to the topic list to practice more or run a timed set.

Angular MCQs MCQ: What does `ngOnDestroy()` lifecycle hook do? | Extra Education