Summary
In this chapter, we explained the motivation behind sharing data between components and learned how to implement it in a reactive way. First, we learned how we can use BehaviorSubject
combined with Angular services to share data between unrelated components and manage our application state. Then, we highlighted the advantages of the sharing data reactive pattern. Finally, we explored Angular’s new Deferrable Views feature.
The features covered in this chapter will help you implement a good architecture for your web application, making it more reactive and performant, improving load times, and reducing the cost of maintainability.
Now, get ready for an exciting journey, because in the next chapter, we delve into a brand-new feature called Angular Signals! We’ll cover some reactive patterns using Signals and even integrate them into what we’ve learned so far.