Loading topic
toSignal and toObservable. This chapter explains what each tool is for, so you can tell when a conversion is worth making.3 min readinject(), and read a signal. It also assumes you know what subscribe and Observable mean in RxJS. The goal is to explain why toSignal and toObservable throw an error when you call them in the wrong place, and how to fix it.3 min readinject(), read signals with signal() and computed(), and write basic RxJS with map and switchMap. It covers the first direction of interop: observable to signal.2 min readtoSignal bridges that gap with initialValue and requireSync, and when to pick each one.3 min readtoSignal subscribes to an observable and how initialValue works. Observables can end in two ways, by completing or by erroring. Signals have no notion of either, so toSignal has to map each ending onto something a signal can express.2 min readinject(), create signals, and subscribe to RxJS observables. You should also know why toSignal needs an injection context, which an earlier chapter covered. Here you will see how toSignal ends its subscription, when you should take tha3 min readsignal() and computed(). It also assumes you know basic RxJS (subscribe, map, switchMap) and how Angular dependency injection works.2 min readeffect() runs after signal changes, and understand basic RxJS subscription. You should also know that toObservable needs an injection context, which an earlier chapter covered.3 min readsignal(), computed(), HttpClient, and the RxJS operators switchMap and debounceTime. You also need to know what an injection context is, and how toSignal and toObservable behave from the earlier chapters.3 min readsignal() and computed(), write basic RxJS pipelines with map and switchMap, and use inject() in an Angular component. It collects the mistakes that toSignal and toObservable cause most often. It also gives a rule for when to skip conversion.2 min readtoSignal and toObservable, and that you have written basic Angular tests with TestBed. Tests for interop code fail for three reasons: there is no injection context, effects have not run yet, or timers have not advanced.2 min read