Slides from the "Data flow architecture in angular2 with redux". Introduction to Redux, it's inspirations and implementation. Join the "AngularJS-IL" meetup group for more community events and workshops! (http://www.meetup.com/AngularJS-IL/events/229660127/)
2. NIR KUFMN
Nir Kaufman
- Doing Angular for years
- Wrote a book about Angular2
- Plays the electric Bass
Head of Angular Development @ 500Tech
*This picture has been retouched.
The actual speaker may look different
27. Every interaction with the view results with an action
that is sent to the store and mutates the state
ACTIONS
UI STATEACTION
28. The view doesn’t create the action. It calls a method
on an action creator that results with an action
ACTION CREATOR
UI STATEACTION
ACTION
CREATOR
29. The action hits a reducer that takes the state and
the action and produces a new state
REDUCER
UI
NEW
STATE
ACTION
ACTION
CREATOR
STATE
REDUCER
30. A middleware can catch an action before it hits the
reducer for applying async operations or other logic.
MIDDLEWARE
UI
NEW
STATE
ACTION
ACTION
CREATOR
STATE
REDUCER
MIDDLE
WARES