Angular · Junior · Question 37 of 75

What is a signal in Angular?

count = signal(0);
increment() { this.count.update((c) => c + 1); }
// template: {{ count() }}

Explanation

Writable signals are changed with set(value) or update(fn). Angular knows which templates read a signal and refreshes them precisely when it changes.

Further reading

Problem with a question

Angular · Junior · question 37

Test yourself

Take the Angular · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz