0.0.6 • Published 11 months ago

@kav-khalsa/ngrx-signal-store v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

NgRx Signal Store Generator

An Nx generator for creating NgRx Signal Stores with TypeScript support.

Installation

npm install @kav-khalsa/ngrx-signal-store --save-dev

Usage

nx generate @kav-khalsa/ngrx-signal-store:signals-store

You will be prompted for:

  • Store name
  • Target project
  • Path for the store
  • Prefix (default: "app")
  • Angular Service to integrate with
  • Method in Angular service to retrieve data from
  • Whether to skip tests
  • State properties with their types

Example:

nx generate @kav-khalsa/ngrx-signal-store:signals-store todo --path=libs/todo-feature --stateProperties="selectedId:string"

This will generate a todo.store.ts file with:

  • Typed state interface
  • Initial state
  • Computed properties
  • Methods for state updates

License

MIT

0.0.6

11 months ago

0.0.5

11 months ago

0.0.4

11 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago