diff --git a/src/packages/target/store/index.ts b/src/packages/target/store/index.ts index 9175e3e..4b59232 100644 --- a/src/packages/target/store/index.ts +++ b/src/packages/target/store/index.ts @@ -4,7 +4,7 @@ import { ActionReducerMap, } from '@ngrx/store'; - import { StateSelector } from 'packages/commons/util/ngrx/store'; + import { StateSelector } from 'packages/core/ngrx/store'; import { MODULE } from '../target.constant'; diff --git a/src/packages/target/target-store.module.ts b/src/packages/target/target-store.module.ts index e69de29..3405870 100644 --- a/src/packages/target/target-store.module.ts +++ b/src/packages/target/target-store.module.ts @@ -0,0 +1,24 @@ +import { NgModule } from '@angular/core'; +import { StoreModule } from '@ngrx/store'; +import { StoreDevtoolsModule } from '@ngrx/store-devtools'; +import { + StoreRouterConnectingModule, + RouterStateSerializer, +} from '@ngrx/router-store'; +import { EffectsModule } from '@ngrx/effects'; +import { combineReducers, ActionReducer, ActionReducerMap, MetaReducer } from '@ngrx/store'; + +import { + REDUCERS, + EFFECTS, +} from './store'; + +import { MODULE } from './target.constant'; + +@NgModule({ + imports: [ + StoreModule.forFeature(MODULE.name, REDUCERS), + EffectsModule.forFeature(EFFECTS), + ], +}) +export class TargetStoreModule { } diff --git a/src/packages/target/target.module.ts b/src/packages/target/target.module.ts index a6617e2..e99ad1b 100644 --- a/src/packages/target/target.module.ts +++ b/src/packages/target/target.module.ts @@ -4,6 +4,7 @@ import { MaterialModule } from 'app/commons/ui/material/material.module'; import { InfoTableModule } from 'app/commons/component/info-table/info-table.module'; import { COMPONENTS } from './component'; +import { SERVICES } from './service'; @NgModule({ imports: [ @@ -17,5 +18,8 @@ import { COMPONENTS } from './component'; exports: [ COMPONENTS, ], + providers: [ + SERVICES, + ], }) export class TargetModule { }