@nx/angular:ngrx-root-store
Adds NgRx support to an application.
Adds NgRx support to an application.
nx generate ngrx-root-store ...
By default, Nx will search for ngrx-root-store
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nx/angular:ngrx-root-store ...
Show what will be generated without writing to disk:
nx g ngrx-root-store ... --dry-run
The name of the application to generate the NgRx configuration for.
true
Only register the root state management setup or also generate a global feature state.
Name of the NgRx state, such as products
or users
. Recommended to use the plural form of the name.
+state
The name of the folder used to contain/group the generated NgRx files.
false
Create a Facade class for the the feature.
''
The route that the Standalone NgRx Providers should be added to. Note: This is only supported in Angular versions >= 14.1.0.
false
Generate NgRx feature files without registering the feature in the NgModule.
false
Skip formatting files.
false
Do not update the package.json
with NgRx dependencies.