Chapter 5: Angular and RxJS – Awesomeness Combined
Angular and RxJS create a killer combination of awesomeness. By combining these, you can handle your data reactively, work with streams, and do really complex stuff in your Angular apps. That's exactly what you're going to learn in this chapter.
Here are the recipes we're going to cover in this chapter:
- Working with RxJS operators using instance methods
- Working with RxJS operators using static methods
- Unsubscribing streams to avoid memory leaks
- Using an Observable with the
async
pipe to synchronously bind data to your Angular templates - Using
combineLatest
to subscribe to multiple streams together - Using the
flatMap
operator to create sequential HyperText Transfer Protocol (HTTP) calls - Using the
switchMap
operator to switch the last subscription with a new one - Debouncing HTTP requests using RxJS