Search⌘ K
AI Features

Installing NgRx

Explore the two primary methods to install NgRx in your Angular application: using NPM and Angular CLI. Understand how the CLI method automates dependency installation, updates configuration files, and sets up the initial reducer to help you begin state management.

Ways of installing NgRx

There are two ways we can install NgRx:

  • Using NPM
  • Using Angular CLI

Using NPM

First, we could use NPM and run the following command in our Angular application:

npm install @ngrx/store --save

📝 Note: Click the terminal window and see what happens! ...