Angular 2 ng2-redux and ngrx / store

I am new to Angular2, I know flux architecture and ng2 redux, ngrx / store, but still confused which library is used to develop the application. Both of these provide a stream implementation. What is the difference between ng2-redux and ngrx / store? What should be used during development?

+5
source share
1 answer

From what I understand, the main difference between the two is that ng2-redux uses Angular bindings for the existing React / Redux implementation, while ngrx / store is a complete redefinition of Redux concepts. As a result, some people will argue that ng2-redux has better compatibility with React / Redux libraries, middleware, and devtools.

hendrikswan on Github, who did a pretty good Pluralsight Angular course with Redux, also claims that ng2-redux is a β€œmore streamlined way” to incorporate Redux into an existing Angular application. ( Source )

Despite all this, if you look at the ng2-redux Github vs ngrx / store , it looks like ngrx / store, a bit more popular. :)

Both are valid storage management solutions, so really it can just boil down to preference.

+1
source

Source: https://habr.com/ru/post/1272330/


All Articles