File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1- import { NgModule , Inject , Type } from '@angular/core' ;
1+ import { NgModule , Inject , Optional } from '@angular/core' ;
2+ import { StoreModule } from '@ngrx/store' ;
23import { EffectsRootModule } from './effects_root_module' ;
34import { FEATURE_EFFECTS } from './tokens' ;
45
56@NgModule ( { } )
67export class EffectsFeatureModule {
78 constructor (
89 private root : EffectsRootModule ,
9- @Inject ( FEATURE_EFFECTS ) effectSourceGroups : any [ ] [ ]
10+ @Inject ( FEATURE_EFFECTS ) effectSourceGroups : any [ ] [ ] ,
11+ @Optional ( ) storeModule : StoreModule
1012 ) {
1113 effectSourceGroups . forEach ( group =>
1214 group . forEach ( effectSourceInstance =>
Original file line number Diff line number Diff line change 1- import { NgModule , Inject } from '@angular/core' ;
1+ import { NgModule , Inject , Optional } from '@angular/core' ;
2+ import { StoreModule } from '@ngrx/store' ;
23import { EffectsRunner } from './effects_runner' ;
34import { EffectSources } from './effect_sources' ;
45import { ROOT_EFFECTS } from './tokens' ;
@@ -8,7 +9,8 @@ export class EffectsRootModule {
89 constructor (
910 private sources : EffectSources ,
1011 runner : EffectsRunner ,
11- @Inject ( ROOT_EFFECTS ) rootEffects : any [ ]
12+ @Inject ( ROOT_EFFECTS ) rootEffects : any [ ] ,
13+ @Optional ( ) storeModule : StoreModule
1214 ) {
1315 runner . start ( ) ;
1416
You can’t perform that action at this time.
0 commit comments