@nx/angular:ngrx-feature-store
Add an NgRx Feature Store to an application or library.
Webinar April 17: Making the Argument for MonoreposWebinar April 17: Making the Argument for MonoreposRegister now!
Add an NgRx Feature Store to an application or library.
1nx generate ngrx-feature-store ...
2
By default, Nx will search for ngrx-feature-store
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/angular:ngrx-feature-store ...
2
Show what will be generated without writing to disk:
1nx g ngrx-feature-store ... --dry-run
2
Name of the NgRx feature state, such as products
or users
. Recommended to use the plural form of the name.
false
Only register the feature state.
The path to the file where the state will be registered. For NgModule usage, this will be your Feature Module. For Standalone API usage, this will be your Routes definition file for your feature state. The host directory will create/use the new state directory.
false
Use barrels to re-export actions, state and selectors.
+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.
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.