I am currently developing an angular-ngrx app. I am using angular-cli to scaffold the app. My trouble is as my app is growing larger i need to add lot of files eg reducer, action , state, effects files . I want to automate this part, where I could generate these state management files with some boiler plate code. Can I please get some help to begin with it?
Asked
Active
Viewed 1,111 times
0
-
2https://github.com/ngrx/platform/blob/master/docs/schematics/README.md – R. Richards Jul 04 '18 at 17:26
1 Answers
0
You can install
@ngrx/schematics
in your dependencies, then create new feature'sactions/reducers/effects
viang generate
https://github.com/ngrx/platform/blob/master/docs/schematics/README.md
If you're using WebStorm latest version, the IDE can recognize the installed schematics and let you create new
actions/reducers/effects
Another handy feature of WebStorm is the Live Template, in the below screenshot, I wrote my own NgRx collection:

Envil
- 2,687
- 1
- 30
- 42