How does signal differ from observable in terms of reactivity?
The main difference is in how they react and where they get data from.
| What | signal | observable |
|---|---|---|
| Type of reactivity | Pull model (pulls data when you read) | Push model (delivers data as it arrives) |
| Stores the current value | Yes, always one | No, only a stream of events |
| How it updates | Change via set() or update() | A new next() from the source |
| How to subscribe | Just call signal() in the template or code | You need subscribe() |
| When to use | Local component state | Asynchronous data, requests, streams |
In short: Signal is like a "living variable" in Angular. Observable is a "stream of events" from somewhere outside.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.