Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save IcodeNet/cf91b8299f1f8886f5298b6d9f557ed9 to your computer and use it in GitHub Desktop.
Save IcodeNet/cf91b8299f1f8886f5298b6d9f557ed9 to your computer and use it in GitHub Desktop.
[ngrx effects] How do I add NgRx effects into an Angular app #ngrx

There is a basic set of steps to use NgRx effects in your applications.

  • First, npm install the @ngrx/effects package.
  • Build an effect to process an action and dispatch the success and fail actions.
  • Initialize the effects module in the root module.
  • Register feature module effects, and
  • finally process the success and fail actions in the reducer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment