@nrwl/angular:ngrx
Adds NgRx support to an application or library.
Usage
nx generate ngrx ...
By default, Nx will search for ngrx
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/angular:ngrx ...
Show what will be generated without writing to disk:
nx g ngrx ... --dry-run
Examples
Add root ngrx configration to the my-app
application:
nx g @nrwl/angular:ngrx --root --module=apps/my-app/src/app/app.module.ts --facade=false placeholder
Add a users
state with a facade to the my-lib
library. It will be tracked under the default +state
folder in the lib:
nx g @nrwl/angular:ngrx --module=libs/my-lib/src/lib/my-lib.module.ts --facade=true --root=false users