Angular · Middle · Question 7 of 75
What does linkedSignal solve?
options = input.required<string[]>();
selected = linkedSignal(() => this.options()[0]);- ✓Correct answer: A writable signal that resets to a value derived from its source whenever the source changes
- 2A computed signal that can never be written to
- 3A signal synchronized with
localStorage
Explanation
The user can selected.set(...) a different option, but when options changes the selection is recomputed. Before linkedSignal, this needed an effect that wrote into another signal.