}
}
},
+ "@ngrx/store": {
+ "version": "9.2.0",
+ "resolved": "https://registry.npmjs.org/@ngrx/store/-/store-9.2.0.tgz",
+ "integrity": "sha512-V8AI3mxbMztVpbZpALkLZYlGkofKcu9GaOCY5e+sZ1VcJ90oxhFjBpnmd6MuVdmhep1XAHALb1B8ZbBFn+xsgQ=="
+ },
"@ngtools/webpack": {
"version": "9.1.4",
"resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-9.1.4.tgz",
"@angular/platform-browser": "~9.1.5",
"@angular/platform-browser-dynamic": "~9.1.5",
"@angular/router": "~9.1.5",
+ "@ngrx/store": "^9.2.0",
"rxjs": "~6.5.5",
"tslib": "^1.10.0",
"zone.js": "~0.10.2"
import { AppComponent } from './app.component';
import { VorgangComponent } from './vorgang/vorgang.component';
+import { StoreModule } from '@ngrx/store';
+import { reducers, metaReducers } from './reducers';
@NgModule({
declarations: [
VorgangComponent
],
imports: [
- BrowserModule
+ BrowserModule,
+ StoreModule.forRoot(reducers, {
+ metaReducers
+ })
],
providers: [],
bootstrap: [AppComponent]
--- /dev/null
+import {
+ ActionReducer,
+ ActionReducerMap,
+ createFeatureSelector,
+ createSelector,
+ MetaReducer
+} from '@ngrx/store';
+import { environment } from '../../environments/environment';
+
+export interface State {
+
+}
+
+export const reducers: ActionReducerMap<State> = {
+
+};
+
+
+export const metaReducers: MetaReducer<State>[] = !environment.production ? [] : [];