DEV Community

tulasikotini009
tulasikotini009

Posted on

1

State Management with ngrx/store and effects

Getting started with ngrx store, effects, actions, reducers etc and are confused what to do when there are multiple reducers and what needs to be done?
I made a simple application to demonstrate the usage of ngrx/store with multiple reducers and also effects.
Github link here: https://github.com/tkt009/AngularNgrxStateManagement.git
Follow the steps to run the app.
It contains two tabs- one with and another without state management, To demonstrate what we lose out on when there's no state mgmt.
Click on the Increment/Decrement counter or enter name in the input box and navigate to another tab. Navigate back to see the saved state being displayed.
play around to see the state management in use.
use the string "products" in the input box and submit to see the effects is usage.
Look at the image uploaded where the the state is displayed.
Hope you all benefit from this application.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay