Introduction to the NgRx Store

Let's learn about the @ngrx/store library.

What is @ngrx/store?

Although NgRx provides several libraries, @ngrx/store is the only one required to work with NgRx in an Angular application. The @ngrx/store library provides a JavaScript object, which acts as a single source of truth for our application’s state. This store is runtime only so that our application’s state is lost if the user refreshes the page or exits the application. We define each piece of the state as a property of the store.

An example of a large application’s store may look like the following:

Get hands-on with 1200+ tech skills courses.