Angular - State Management
Identify the error in this Angular signal code:
const name = signal('Alice');
name.update(name + ' Smith');const name = signal('Alice');
name.update(name + ' Smith');update() expects a function that receives the current value and returns the new value.name + ' Smith' which is a string, not a function, causing an error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions