我们是否总是需要在任何角度开发中实施NGRX / Redux设计模式?
我非常了解redux的概念,并练习了教程,但是我不了解如何为我的未来项目实现NGRX。
答案 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:
- We can inject services deep in the component tree if we want to.
- We can even inject components or services into each other if we feel they are inherently tightly coupled.
- We can create shared data services that might or might not store the data.
https://blog.angular-university.io/angular-2-redux-ngrx-rxjs/