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 implement complex business logic in your Angular apps. That’s exactly what you’re going to learn about in this chapter.

Here are the recipes we’re going to cover in this chapter:

  • Sequential and parallel HTTP calls in Angular with RxJS
  • Listening to multiple observable streams
  • Unsubscribing streams to avoid memory leaks
  • Using Angular’s async pipe to unsubscribe streams automagically
  • Using the map operator to transform data
  • Using the switchMap and debounceTime operators with autocompletes for better performance
  • Creating a custom RxJS operator
  • Retrying failed HTTP ...

Get Angular Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.