Put in order · Angular course · Module 6: Signals
Choice: Signal or RxJS
Arrange the decision process for choosing a reactivity tool for UI state.
Items to put in order
- Is the value derived from other signals? → use computed()
- Do you need an Observable as a Signal? → use toSignal()
- Is it an asynchronous stream (HTTP, WebSocket)? → use RxJS
- Is the value synchronous and simple? → use signal()
You can check the correct answer by solving this task in the CodeWorlds game.