Recall & Review
beginner
What is a signal in Angular?
A signal is a special kind of variable that holds state and notifies the app when its value changes, allowing automatic updates in the UI.
Click to reveal answer
beginner
How do you create a signal in Angular?
Use the <code>signal()</code> function from Angular to create a signal, for example: <code>const count = signal(0);</code>Click to reveal answer
intermediate
How do signals improve state management compared to traditional methods?
Signals automatically track dependencies and update only the parts of the UI that use the changed state, reducing manual subscriptions and improving performance.
Click to reveal answer
beginner
What is the difference between a signal and a regular variable?
A regular variable does not notify the app when it changes, but a signal triggers updates wherever it is used, keeping the UI in sync automatically.
Click to reveal answer
beginner
How can you update the value of a signal?
Use the
set() method or call the signal as a function with a new value, for example: count.set(5); or count(5);Click to reveal answer
What does a signal in Angular do?
✗ Incorrect
Signals hold state and notify Angular to update the UI when the state changes.
Which function creates a signal in Angular?
✗ Incorrect
Angular uses the signal() function to create signals.
How do you update a signal's value?
✗ Incorrect
Signals provide set() method or can be called as functions to update their value.
Why are signals better than manual subscriptions?
✗ Incorrect
Signals reduce boilerplate by auto-tracking and updating only what needs to change.
Which of these is NOT true about signals?
✗ Incorrect
Signals are for state management, not routing.
Explain what signals are in Angular and how they help manage state.
Think about how signals replace manual subscriptions and keep UI updated.
You got /4 concepts.
Describe how to create and update a signal in Angular with simple code examples.
Focus on the syntax and methods to change signal values.
You got /3 concepts.