Angular · Junior · Question 36 of 75

When does ngOnChanges run?

Explanation

It receives a SimpleChanges object with the previous and current values. With signal inputs you usually don't need it: computed() or effect() react to input changes directly.

Further reading

Problem with a question

Angular · Junior · question 36

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz