Setting Up the Reducers

Let's create a reducer in an Angular application.

In this lesson, we’ll define a reducer function for our application’s actions step-by-step.

Introduction to NgRx reducers

When we dispatch an action from our component, NgRx forwards it to the reducers. The reducers perform updating operations on the store according to the type property of the action object. Then the reducer returns the new state to the store.

NgRx provides us with the createReducer() function to create and maintain reducers efficiently. The ...