← Angular learning pathAngular · Module 9 of 10
Signals and state
Manage reactive state with signals, computed values and services.
📖 Key ideas
- A signal holds a value: count = signal(0).
- Read with count(), write with count.set(1) or count.update(c => c + 1).
- computed() derives values; effect() runs side effects.
- Signals make change detection precise.
- For big apps: services with signals or NgRx store.
💡 Real-life example: A signal is a light switch wired to bulbs: flip it and only the connected bulbs (views) change.
signal()Reactive value holder
computed()Derived signal
effect()Runs when signals change
NgRxRedux-style store for Angular