Redux

Using Redux to Manage State in Angular 1 Pluralsight course page 1

Redux attempts to make state mutations predictable 2 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.

diagram 3 diagram

Core Principles

  1. single source of truth (for state), one big store
  2. state is read-only, immutable
  3. pure functions drive changes
  • course repo 4, a little console app that shows you how to use redux without React or Angular (used in Pluralsight course).
  • angular2 cli ts app 5. you may have multiple reducer types updating some root state.
  • redux dev tools 6 multi browser extension
  • Angular 2 redux bindings 7
< «