Signal
noun
say it: “SIG-nul” /ˈsɪɡnəl/
An Angular value that tells Angular when it changes, so the page updates by itself.
What is Signal?
A signal is a value that tells Angular when it changes, so the page updates exactly where it is used. Read it by calling it, change it with set or update.
count = signal(0);
increment() {
this.count.update(c => c + 1);
}
// template: <p>Clicked {{ count() }} times</p>
In a sentence
- “The cart count is a signal, so the badge updates as soon as it changes.”
Level: Journeyman · More Angular terms at this level
Updated