NgRx Ducks
This library acts as a thin layer on top of ngrx. It automatically creates action creators and reducer functions for you. Furthermore, you get a service that you can use in your components. This Service provides a strictly typed API allowing both dispatching actions and selecting data from the Store.
Coming from NgRx Ducks < 7.3?
The API has been simplified in version 7.3. Decorators are now used to define a Duck. The previous API is deprecated since version 7.3 and will be removed in version Ngrx Ducks 8.
Please refer to the migration guide to learn what needs to be changed to update to the most recent version: Migration Guide
Quick Start
Getting started in 10 Minutes.
Demo
Please checkout the demo hosted on StackBlitz. It shows how ngrx and ngrx-ducks work together.
Schematics
The NgRx Ducks library provides built-in schematics to generate a Duck for you.