Skip to content

Commit

Permalink
docs(angular): fix commands in ngrx guide (#9310)
Browse files Browse the repository at this point in the history
  • Loading branch information
berkkoylu committed Mar 14, 2022
1 parent 71bd3e1 commit 0d6bdf5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/shared/guides/misc-ngrx.md
Expand Up @@ -24,7 +24,7 @@ The `ngrx` schematic generates an NgRx feature set containing the following file
The following command is used to run the `ngrx` schematic:

```bash
nx g@nrwl/angular:ngrx <featurename> --module=<path-to-module> --defaults [options]
nx g @nrwl/angular:ngrx <featurename> --module=<path-to-module> --defaults [options]
```

> Note: the `name` and the `--module=` arguments are required. The `defaults` option chooses the recommended defaults for the schematic, unless you override them.
Expand All @@ -46,7 +46,7 @@ To get started with NgRx in an Angular application, you set up the root level st
The example below shows you how to setup NgRx in the root of your application.

```bash
nx g@nrwl/angular:ngrx app --module=apps/<appname>/src/app/app.module.ts --root
nx g @nrwl/angular:ngrx app --module=apps/<appname>/src/app/app.module.ts --root
```

The above command applies the following changes to the provided module:
Expand All @@ -66,7 +66,7 @@ state to be easily shared across other libraries and applications. The steps bel
The example below generates a library to begin a new feature. For this example, `products` is used as the library name.

```bash
nx g@nrwl/angular:lib products
nx g @nrwl/angular:lib products
```

To manage the feature state:
Expand All @@ -75,7 +75,7 @@ To manage the feature state:
- Provide a path to the `products` library module.

```bash
nx g@nrwl/angular:ngrx products --module=libs/products/src/lib/products.module.ts --directory +state/products --defaults
nx g @nrwl/angular:ngrx products --module=libs/products/src/lib/products.module.ts --directory +state/products --defaults
```

> Use the `--facade` option to generate an injectable Facade class along with the feature.
Expand Down

1 comment on commit 0d6bdf5

@vercel
Copy link

@vercel vercel bot commented on 0d6bdf5 Mar 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.