Angular · Senior · Question 40 of 75
When is a plain service with signals enough instead of a state library?
- ✓Correct answer: When state is limited to a feature and the team doesn't need strict event logging, devtools time travel or effects orchestration
- 2Never - Angular apps must use NgRx
- 3Only for apps without HTTP calls
Explanation
A service exposing read-only signals (asReadonly()) and methods that update them covers many apps. Add a library when cross-feature state, debugging needs or team conventions justify it.