Angular · Middle · Question 10 of 75

What does toObservable(sig) let you do?

Explanation

A common pattern: toSignal(toObservable(this.query).pipe(debounceTime(300), switchMap((q) => this.api.search(q)))). Signals hold state; RxJS is good at time-based and cancellable async flows.

Further reading

Problem with a question

Angular · Middle · question 10

Test yourself

Take the Angular · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz