You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--path`| Path to the module that you wish to add the import for the StoreModule to. |`string`|
29
+
|`--project`| Name of the project defined in your `angular.json` to help locating the module to add the `provideRedux` to. |`string`|
30
+
| `--module` | Name of file containing the module that you wish to add the import for the `provideRedux` to. Can also include the relative path to the file. For example, `src/app/app.module.ts`. | `string` | `app`
31
+
|`--storePath`| The file path to create the state in. |`string`|`store`|
32
+
33
+
This command will automate the following steps:
34
+
35
+
1. Update `package.json` > `dependencies` with Redux, Redux Toolkit, and Angular Redux
36
+
2. Run `npm install` to install those dependencies.
37
+
3. Update your `src/app/app.module.ts` > `imports` array with `provideRedux({store})`
38
+
4. If the project is using a `standalone bootstrap`, it adds `provideRedux({store})` into the application config.
39
+
40
+
## Installing with `npm` or `yarn`
41
+
17
42
To use React Redux with your Angular app, install it as a dependency:
0 commit comments