Summary
In this chapter, we explained the motivation behind sharing data between components and learned how to implement it in a reactive way. We learned how we can use BehaviorSubject
combined with AngularServices
to share data between unrelated components and manage our application state. Finally, we went through the alternatives of state management for more complex scenarios. This will help you put in place a good architecture for your web application, which will make it more reactive, more performant, and reduce the cost of maintainability.
In the next chapter, we will explore the pattern of bulk operations.