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
Copy file name to clipboardExpand all lines: projects/ngrx.io/content/guide/store/install.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,12 +17,14 @@ ng add @ngrx/store@latest
17
17
| `--minimal` | Flag to only provide minimal setup for the root state management. Only registers `StoreModule.forRoot()` in the provided `module` with an empty object, and default runtime checks. | `boolean` |`true`
18
18
|`--statePath`| The file path to create the state in. |`string`|`reducers`|
19
19
|`--stateInterface`| The type literal of the defined interface for the state. |`string`|`State`|
20
+
|`--standalone`| Flag to configure store for standalone application. |`boolean`|`false`|
20
21
21
22
This command will automate the following steps:
22
23
23
24
1. Update `package.json` > `dependencies` with `@ngrx/store`.
24
25
2. Run `npm install` to install those dependencies.
25
-
3. Update your `src/app/app.module.ts` > `imports` array with `StoreModule.forRoot({})`.
26
+
3. Update your `src/app/app.module.ts` > `imports` array with `StoreModule.forRoot({})`
27
+
4. If the flag `--standalone` is provided, it adds `provideStore()` into the application config.
0 commit comments