This commit is contained in:
crusader 2018-03-06 15:02:20 +09:00
parent 40c1e99411
commit 0cdb6547fb
4 changed files with 44 additions and 1 deletions

View File

@ -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 './noauth-probe.constant';
@NgModule({
imports: [
StoreModule.forFeature(MODULE.name, REDUCERS),
EffectsModule.forFeature(EFFECTS),
],
})
export class NoAuthProbeStoreModule { }

View File

@ -0,0 +1,3 @@
export const MODULE = {
name: 'noAuthProbe'
};

View File

@ -1,12 +1,15 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { NoAuthProbeStoreModule } from './noauth-probe-store.module';
import { COMPONENTS } from './component';
import { SERVICES } from './service';
@NgModule({
imports: [
CommonModule
CommonModule,
NoAuthProbeStoreModule,
],
declarations: [
COMPONENTS,

View File

@ -0,0 +1,13 @@
import * as NoAuthProbeStore from './noauth-probe';
export interface State {
noAuthProbe: NoAuthProbeStore.State;
}
export const REDUCERS = {
noAuthProbe: NoAuthProbeStore.reducer,
};
export const EFFECTS = [
NoAuthProbeStore.Effects,
];