6

Transforming Streams

When dealing with streams, one of the most frequent use cases you will face is the need to transform a stream of certain values into a stream of other values. That’s what this chapter is about.

This chapter revolves around adding an autosave feature to our project that we will be resolving by transforming streams. We will start by explaining the autosave requirement that we will be implementing in the recipe app. Then, we will explore the imperative way of implementing this feature. After that, we will learn about the declarative pattern for doing it and study the most commonly used RxJS transformation operators for this situation.

Finally, we will delve into the different transformation operators provided by RxJS and ...

Get Reactive Patterns with RxJS and Angular Signals - 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.