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.