Creating a Shared Data Service
A shared data service keeps its state in a private signal, shows it to components read-only with asReadonly() and computed values, and changes it only through its own methods. Every component that injects it sees the same, up-to-date data.
Updated

- Category
- Angular
- Level
- Journeyman
- Tags
- angular, asReadonly(), Service (angular)