Angular - State Management
You want to create a signal that holds a list of numbers and add a new number to it reactively. Which code correctly updates the signal to add number 7?
update() with a function that returns a new array including 7, which is correct.push() on the signal itself, which is not valid.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions