My goal in using BehaviouSubject was to streamline API calls and share the data with multiple components within the same route. While I've successfully achieved this, I'm facing challenges when trying to filter the received data.
Here is a stackblitz example that I have put together:
https://stackblitz.com/edit/angular-xtne5y
One of my components displays a table, while the other component needs to extract specific information based on individual object key values (e.g., counting complete/incomplete todos). Due to the necessity of using the async pipe throughout the template, performing operations like filtering becomes impractical. Is there a more efficient way to tackle this issue?
It's crucial for me to maintain reusability of the extracted data.