Problem Statement
What is the Signal API and when would you prefer it over services with Subjects?
Explanation
Signals are reactive primitives that track dependencies and update views automatically without manual change detection. Prefer signals for local component state or simple shared state where you want fine-grained updates with minimal boilerplate. Use RxJS streams when you need rich async composition, multicasting, or complex event pipelines.
Practice Sets
This question appears in the following practice sets: