Skip to content

Commit 549fa24

Browse files
authored
Merge pull request #3 from CenterForOpenScience/chore/46-setup-state-management
Chore/46 setup state management
2 parents 84f7203 + 1a5a10e commit 549fa24

File tree

4 files changed

+63
-2
lines changed

4 files changed

+63
-2
lines changed

package-lock.json

Lines changed: 56 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
"@angular/platform-browser": "^19.2.0",
2222
"@angular/platform-browser-dynamic": "^19.2.0",
2323
"@angular/router": "^19.2.0",
24+
"@ngxs/devtools-plugin": "^19.0.0",
25+
"@ngxs/logger-plugin": "^19.0.0",
26+
"@ngxs/store": "^19.0.0",
2427
"rxjs": "~7.8.0",
2528
"tslib": "^2.3.0",
2629
"zone.js": "~0.15.0"

src/app/app.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
22
import { provideRouter } from '@angular/router';
3-
43
import { routes } from './app.routes';
4+
import { provideStore } from '@ngxs/store';
5+
import { withNgxsReduxDevtoolsPlugin } from '@ngxs/devtools-plugin';
56

67
export const appConfig: ApplicationConfig = {
78
providers: [
89
provideZoneChangeDetection({ eventCoalescing: true }),
910
provideRouter(routes),
11+
provideStore([], withNgxsReduxDevtoolsPlugin({ disabled: false })),
1012
],
1113
};

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
<link rel="icon" type="image/x-icon" href="favicon.ico" />
99
</head>
1010
<body>
11-
<app-root></app-root>
11+
<osf-root></osf-root>
1212
</body>
1313
</html>

0 commit comments

Comments
 (0)