Creating a SignalStore
Define state with signalStore and withState.
What Is SignalStore
NgRx SignalStore is a lightweight state management solution built on Angular signals. You compose a store from features like withState, withComputed, and withMethods.
Installing
SignalStore lives in the @ngrx/signals package. Add it to your Angular project, then import the building blocks you need.
// terminal
// ng add @ngrx/signals
import { signalStore, withState } from '@ngrx/signals';All lessons in this course
- Creating a SignalStore
- Computed and Methods
- rxMethod for Async Work
- Entities and Custom Features