Skip to main content

How does signal differ from observable in terms of reactivity?

The main difference is in how they react and where they get data from.

Whatsignalobservable
Type of reactivityPull model (pulls data when you read)Push model (delivers data as it arrives)
Stores the current valueYes, always oneNo, only a stream of events
How it updatesChange via set() or update()A new next() from the source
How to subscribeJust call signal() in the template or codeYou need subscribe()
When to useLocal component stateAsynchronous 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 ready
Premium

A concise answer to help you respond confidently on this topic during an interview.