Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular 2 ng2-redux and ngrx/store

I am new in Angular2, I know flux architecture and ng2 redux, ngrx/store but still confused which library is used for development of an application. Both of are provided the implementation of flux. What is the difference between ng2-redux and ngrx/store? What should be used in development?

like image 520
Parvesh kumar Avatar asked Oct 04 '17 09:10

Parvesh kumar


1 Answers

From what I understand, the primary difference between the two is that ng2-redux uses Angular bindings for existing React/Redux implementation, whereas ngrx/store is an entire reimplementation 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 made a pretty good Pluralsight course on Angular with Redux, also claims that ng2-redux is a "more optimized way" to introduce Redux to an existing Angular application. (Source)

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

Both are valid solutions to store management, so really it might just boil down to preference.

like image 64
kekdahl Avatar answered Oct 10 '22 14:10

kekdahl