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?
- ✓Correct answer: Only the child view that reads the signal (its ancestors are traversed but not re-checked)
- 2The whole application from the root, including all OnPush components
- 3Nothing until an input of the parent changes
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.