Redux
Using Redux to Manage State in Angular
Redux attempts to make state mutations predictable by imposing certain restrictions on how and when updates can happen. Overkill if application is small. Comes with ts bindings, first class support for Angular.
Core principles
- single source of truth (for state), one big store
- state is read-only, immutable
- pure functions drive changes
links
- course repo, a little console app that shows you how to use redux without React or Angular (used in Pluralsight course).
- angular2 cli ts app. you may have multiple reducer types updating some root state.
- redux dev tools multi browser extension
- Angular 2 redux bindings