Coding task · Angular course · Module 10: State Management

Practice: NgRx SignalStore

A store from @ngrx/signals is built from functions: one creates the whole store, withState() defines the initial state and withMethods() adds methods. Inside the methods the state is updated partially by passing the store and an object with the fields to overwrite.

Task

Complete the SignalStore for managing samurai.