Creating a reducer example: let’s say we have a file- account.reducer.ts export function reducer(state, action) { switch (action.type) { case ‘UPDATE_ACCOUNT_STATUS’: return { …state, accountStatus: action.payload }; default: return state; } } Then in another file let’s say app.module.ts we import the reducer for root import { StoreModule } fromContinue Reading

State data can be view data, user information, entity data, user selection or input and any other data that the application tracks .. what to do with so much data??? how to upkeep it ? how to notify it globally? Here comes, NgRx which is a reactive library for angularContinue Reading