@nx/angular:ngrx-feature-store
Add an NgRx Feature Store to an application or library.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Add an NgRx Feature Store to an application or library.
1nx generate ngrx-feature-store ...
2By 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 ...
2Show what will be generated without writing to disk:
1nx g ngrx-feature-store ... --dry-run
2Name 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.
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.
falseGenerate NgRx feature files without registering the feature in the NgModule.
falseSkip formatting files.
falseDo not update the package.json with NgRx dependencies.