Explain some difference between Flux and AngularJS (1.x) approach

Technology CommunityCategory: ReactExplain some difference between Flux and AngularJS (1.x) approach
VietMX Staff asked 3 years ago

UI components in AngularJS typically rely on some internal $scope to store their data. This data can be directly mutated from within the UI component or anything given access to $scope — a risky situation for any part of the component or greater application which relies on that data.

By contrast, the Flux pattern encourages the use of immutable data. Because the store is the central authority on all data, any mutations to that data must occur within the store. The risk of data pollution is greatly reduced.