Observables Basics
An Observable is a stream: values over time. HTTP returns one. A search box can emit many. You subscribe, or use async pipe in the template.
Board: type in search. debounceTime(300), switchMap to HTTP. Old request cancelled. Trap: nested subscribe inside subscribe — flatten with switchMap. Another trap: forgetting complete/unsubscribe on a long-lived stream.
Exam tip
Observable vs promise. debounce + switchMap search.