Question · Angular course · Module 6: Signals
set() vs update()
What is the difference between set() and update() for a signal?
Answer options
- set() is faster, update() is slower
- set() sets a new value, update() updates based on the previous one
- set() for objects, update() for primitives
- There is no difference, they are aliases
You can check the correct answer by solving this task in the CodeWorlds game.