LoginSignup
19
16

More than 5 years have passed since last update.

Angular2 + RxJS + Redux

Posted at

Angular2 + Redux でngrx/storeに注目していましたが、その周辺も充実してきています。
ng-confでも紹介されています。⇒こちら
Angular2 + RxJS は本当にパワフルです。今後が楽しみです。

ngrx

RxJSを使った、Angular2の拡張
すべて使ったサンプル example-app はなかなかキレイです。

store

RxJSを使ったRedux風の実装
async pipeがあるので相性がいいですね。
最近v2になりmiddleware回りが変わりました。
ドキュメントやサンプルが充実しています。

Comprehensive Introduction to @ngrx/store 
仕組みから簡単なサンプルまで解説してくれています。

https://github.com/btroncone/ngrx-examples
Rudux公式のサンプルを作ってくれていたり、関連ドキュメントをまとめてくれています。

effects

redux-sagaみたいに副作用をわかりやすくかけるようにしてくれます。
もともとはstore-sagaでしたがstoreがv2になった際により書きやすくなり、リネームされました。

router

Angular2のrouterとは別のrouter
非同期読み込みやGuardsが便利そうです。まだβ

devtools、router-store、db

storeを使う際の開発を便利にしてくれます
loggerももちろんあります。

19
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
16