Abstract
When implementing the user story to list top stories in the last chapter, the actual data is stored in RxJS observables. Although the implementation in the ItemService is very concise, it's not very easy to understand, especially the usage of different RxJS operators. The combination of RxJS operators can be very complicated, which makes the debugging and testing very hard. It's better to use explicit state management in the app. We'll use NgRx for state management.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Fu Cheng
About this chapter
Cite this chapter
Cheng, F. (2018). State Management with NgRx. In: Build Mobile Apps with Ionic 4 and Firebase. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3775-5_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3775-5_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3774-8
Online ISBN: 978-1-4842-3775-5
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)