Advanced AngularLesson 31Free preview
Angular Signals
This lesson is part of Angular · All levels
Summary
Signals are a feature of modern Angular reactivity in the form of state values that track its changes. Made with signal(), values are read with parentheses and changed by set() or update(). Computed generates derivative values, whereas effect runs automatic logic as its dependencies change.
Key points
- Signal() makes the container of reactive value
- Read values using parentheses such as count()
- Set() changes the value and update() changes based on the old value
- Computed() and effect() react to signal changes
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.