Redux for Angular -- Introduction to Ngrx Ecosystem
summary
Ngrx brings Redux patterns into Angular using RxJS: the store holds a single state object selected as observables, reducers produce new immutable state (use spread and map to update arrays), and Ngrx Effects handle async work by returning actions (including arrays) rather than dispatching. Router state plugs into the store and store devtools lets you inspect action/state diffs. Tests use provideMockActions and either marble diagrams or simple subscribe/assert flows; switchMap cancels stale requests so autocompletes behave correctly.
AI-written summary · about
chapters (13)
- 0:00Start
- 6:45Scan Operator
- 14:58Reducer
- 18:39Best Practices
- 23:37Reducers
- 24:06Search Action
- 31:01Store Module
- 35:35Reductive Tools
- 39:21Authentication
- 49:10Extra Debugging
- 50:43Why Switch Maps
- 51:15Test Reducers
- 54:32Provide Mock Actions
related talks
44mAngular + Redux ... stop, what?
27mngRx the last piece in the Angular architecture puzzle
34mReactive State Management For Your Angular App
20mComplexity Management with NgRx
29mReducing Complexity with Ngrx
26mState Management Patterns and Best Practices with NgRx
30mState Management Patterns and Best Practices with NgRx
52mState Management in Angular: From Facades to NgRx and back
