NgRx
· Is framework for building reactive apps in angular.
· Global state management.
· Powerful lib for managing state in angular.
· Uses popular redux pattern.
· Redux pattern: it maintains three principles.
Action Reducer and store.
· ngRx goal is managing state and interacting application according to state.
· Data flow in one way direction.
Problem solved with ngrx
1. When the application is bigger at that time, we have more services in the application if we use ngrx for that application then no service is required as we are maintaining centralized data.
2. complex component communication.
3. when we need client-side caching.