~ Ash Belmokadem
My experience with Angular
Introduction to Flux
Our implementation of Flux
Demo
Large data model
Computed values
Cascading changes
Controllers as God Objects
Flux is the application architecture that Facebook uses for building client-side web applications. It complements React's composable view components by utilizing a unidirectional data flow. It's more of a pattern rather than a formal framework, and you can start using Flux immediately without a lot of new code.
1
fires
2
calls dispatch
3
dispatches action
4
notifies
5
queries
Enforced Synchrony
Inversion of Control
Semantic Actions
No Cascading Actions
Use Flux on top of Angular instead of React
No controllers
Only use directives
flux-angular
1
click new product button
2
dispatch action create-product
3
call handlers
4
notify
6
notify
5
start loader
7
get new products
8
POST /products
1
2xx OK
2
dispatch action create-product-success
3
call handlers
4
notify
5
stop loader
6
notify
7
get all products