summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/common/core/core.module.ts
diff options
context:
space:
mode:
authorArundathi Patil <arundpil@in.ibm.com>2019-01-08 18:55:05 +0530
committerIBM602-PC0F1E3C\Arundathi <arundpil@in.ibm.com>2019-01-08 18:55:25 +0530
commit59537f121d269293ca021b133ea453129676ff86 (patch)
treebe57ffd4c76a1631d27fb65d78edd4ab275ed016 /cds-ui/client/src/app/common/core/core.module.ts
parentf352a874bd742784541ee67112ea2e648a5b3951 (diff)
Setting up ngrx store
Registred application state reducer to app module Issue-ID: CCSDK-816 Change-Id: I0e108456d674f070bc8c4002938d929ccce8fbe3 Signed-off-by: Arundathi Patil <arundpil@in.ibm.com>
Diffstat (limited to 'cds-ui/client/src/app/common/core/core.module.ts')
-rw-r--r--cds-ui/client/src/app/common/core/core.module.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/cds-ui/client/src/app/common/core/core.module.ts b/cds-ui/client/src/app/common/core/core.module.ts
index 9b812a0b3..f72a8a27c 100644
--- a/cds-ui/client/src/app/common/core/core.module.ts
+++ b/cds-ui/client/src/app/common/core/core.module.ts
@@ -21,8 +21,14 @@ limitations under the License.
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
+import { StoreModule, Store } from '@ngrx/store';
+import { EffectsModule } from '@ngrx/effects';
+import { StoreRouterConnectingModule } from '@ngrx/router-store';
import { HttpClientModule } from '@angular/common/http';
+import { appReducers } from './store/reducers/app.reducer';
+import { BlueprintEffects } from './store/effects/blueprint.effects';
+
import { ApiService } from './services/api.service';
// import { BlueprintService } from './services/blueprint.service';
@@ -31,6 +37,9 @@ import { ApiService } from './services/api.service';
],
imports: [
CommonModule,
+ StoreModule.forRoot(appReducers),
+ EffectsModule.forRoot([BlueprintEffects]),
+ StoreRouterConnectingModule.forRoot({stateKey: 'router'}),
HttpClientModule
],
providers : [ ApiService ]