Chapter 7: State Management with NgRx
Managing shared state, async data fetching, and UI synchronization with NgRx.
- Actions
- Reducers
- Selectors
- Effects
- Facades
What you can try in this demo
Six demos share one live cart, so an action dispatched in one card updates all the others. Start with a service-based cart that uses no NgRx, follow the same feature through actions, reducers, selectors and effects, and finish with a facade that hides the store from components.
This demo is chapter 7 of Modern Angular Design Patterns. The book walks through the code behind it.
Buy the book