Exploring Reactivity with RxJS
In a web application, one of the most challenging tasks is dealing with the asynchronous nature of the web. An application cannot predict when events such as requests to the backend, changing routes, and simple user interactions will happen. Imperative programming in these cases is more complex and susceptible to errors.
The RxJS library that makes up the Angular ecosystem aims to make controlling asynchronous flows simpler using declarative and reactive programming.
In this chapter, we will cover the following topics:
- Observables and operators
- Handling data – transformation operators
- Another way to subscribe – the async pipe
- Connecting information flows – high-order operators
- Optimizing data consumption – filter operators
- How to choose the correct operator
By the end of the chapter, you will be able to create better experiences for your users by integrating their actions with backend...