Angular · Senior · Question 14 of 75

An OnPush parent has an OnPush child that reads a signal in its template. The signal changes. What is refreshed?

Explanation

Since Angular 17, signal changes mark the consuming view for refresh and its ancestors only for traversal. This "local" change detection is far cheaper than markForCheck, which re-checks every ancestor.

Further reading

Problem with a question

Angular · Senior · question 14

Test yourself

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

Take this quiz