Complete the code to create a signal that holds a number value.
const count = [1](0);
In Angular signals, signal() creates a reactive value that triggers updates when changed.
Complete the code to read the current value of a signal inside a component.
const currentCount = count.[1]();Use get() to access the current value of a signal in Angular.
Fix the error in updating a signal's value.
count.[1](count.get() + 1);
To update a signal's value, use the set() method with the new value.
Fill both blanks to create a computed signal that doubles the count.
const doubleCount = computed(() => count.[1]() [2] 2);
Use get() to read the signal and * to multiply by 2.
Fill all three blanks to create a signal, update it, and read its value.
const score = [1](10); score.[2](score.get() [3] 5);
Create a signal with signal(), update it with set(), and add 5 using +.
