© Oren Farhi 2017

Oren Farhi, Reactive Programming with Angular and ngrx, 10.1007/978-1-4842-2620-9_3

3. Adding State Management with ngrx/store

Oren Farhi

(1)Lod, Israel

One of the most important aspects of software development is state management. With each development project, there’s some sort of tracking being done of data over time as well as of any updates made to that data.

When approaching the user interface in front-end development, it’s important to have a single source of truth when it comes to data. The UI should display the exact state of data. In JavaScript, it is very easy to lose a reference to a data structure, thus creating ghost references that can cause a false presentation of the wrong data.

With Angular version 1, one of the ...

Get Reactive Programming with Angular and ngrx: Learn to Harness the Power of Reactive Programming with RxJS and ngrx Extensions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.