I am using EffectsModule.forFeature for my SubComponents, in the EffectsModule.RootFeature the data flow works well, but in Feature it sends me an error in the subscribe.
imports: [
StoreModule.forFeature( 'DevdianState', devdianReducers ),
EffectsModule.forFeature( effectsArr )
///////////////////////// component.ts //
constructor( public store: Store<DevdianState> ) {}
public ngOnInit() {
this.store.select('flyers')
.subscribe( flyers => {
this.avatars = flyers.flyers; ///error, no reconoce flyer
this.loading_flyers = flyers.loading;
this.loaded_flyers = flyers.loaded;
this.error = flyers.error;
});
this.store.dispatch( new flyersActions.CargarFlyers() );
To better explain the error, reply it to: link
Someone can help me find the why of the error, I have considered several tutorials and I can not find the error.
Greetings.