@nx/angular:ngrx-feature-store
Add an NgRx Feature Store to an application or library.
Add an NgRx Feature Store to an application or library.
nx generate ngrx-feature-store ...
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:
nx g @nx/angular:ngrx-feature-store ...
Show what will be generated without writing to disk:
nx g ngrx-feature-store ... --dry-run
Name of the NgRx feature state, such as products or users. Recommended to use the plural form of the name.
falseOnly 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. Note: The Standalone API usage is only supported in Angular versions >= 14.1.0.
falseUse barrels to re-export actions, state and selectors.
+stateThe name of the folder used to contain/group the generated NgRx files.
falseCreate 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.
falseGenerate NgRx feature files without registering the feature in the NgModule.
falseSkip formatting files.
falseDo not update the package.json with NgRx dependencies.