From 0d6bdf523d31a52699164b231ac1076c5fc8bb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Berk=20K=C3=B6yl=C3=BC?= Date: Mon, 14 Mar 2022 12:50:00 +0300 Subject: [PATCH] docs(angular): fix commands in ngrx guide (#9310) --- docs/shared/guides/misc-ngrx.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/shared/guides/misc-ngrx.md b/docs/shared/guides/misc-ngrx.md index 8102b12b8d1fd..8154690672b84 100644 --- a/docs/shared/guides/misc-ngrx.md +++ b/docs/shared/guides/misc-ngrx.md @@ -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 --module= --defaults [options] +nx g @nrwl/angular:ngrx --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. @@ -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//src/app/app.module.ts --root +nx g @nrwl/angular:ngrx app --module=apps//src/app/app.module.ts --root ``` The above command applies the following changes to the provided module: @@ -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: @@ -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.