How does a signal notify about changes?
A signal tracks on its own who reads it. When the value changes, it notifies all the places that used it, and Angular re-renders only those areas.
In junior terms:
- A template or
computed()reads the signal viacounter(). - The signal "remembers" that these parts depend on it.
- When
set()orupdate()is called, the signal tells the dependent parts: "the value has changed". - Angular updates only them, not the whole component or application.
The signal triggers updates by itself, no manual subscriptions needed.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.