O'Reilly logo

TypeScript Blueprints by Ivo Gabe de Wolff

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Advantages of Flux

In this section you can find some of the advantages of using Flux, the architecture that we used in this chapter.

Flux is based on the unidirectional flow of data. Angular supports two way bindings, which allow data to flow in two directions. With this data flow, a lot of properties might get changed after a single change is made. This can lead to unpredictable behavior in big applications. Flow and React do not have such bindings, but instead there is a clean flow of data (store | view | action | dispatch | store).

The parts of Flux are not strictly bound to each other. This makes it easy to test specific parts of the application with unit tests. We already saw that the actions do not depend on the view.

Going cross-platform

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required