0.0.6 • Published 1 year ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago