对于任何角度开发,我们都需要NGRX吗?

时间:2019-01-09 19:17:28

标签: asp.net angular redux ngrx

我们是否总是需要在任何角度开发中实施NGRX / Redux设计模式?

我非常了解redux的概念,并练习了教程,但是我不了解如何为我的未来项目实现NGRX。

1 个答案:

答案 0 :(得分:0)

No, we don't need.

As the angular university blog says:

In Angular we have a whole set of built-in solutions to handle complex component interaction scenarios. The core of all those solutions is the Angular Dependency Injection system:

  1. We can inject services deep in the component tree if we want to.
  2. We can even inject components or services into each other if we feel they are inherently tightly coupled.
  3. We can create shared data services that might or might not store the data.

https://blog.angular-university.io/angular-2-redux-ngrx-rxjs/