Guest User

Untitled

a guest
Dec 13th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. imports: [
  2. StoreModule.forFeature( 'DevdianState', devdianReducers ),
  3. EffectsModule.forFeature( effectsArr )
  4.  
  5. constructor( public store: Store<DevdianState> ) {}
  6.  
  7.  
  8. public ngOnInit() {
  9. this.store.select('flyers')
  10. .subscribe( flyers => {
  11. this.avatars = flyers.flyers; ///error, no reconoce flyer
  12. this.loading_flyers = flyers.loading;
  13. this.loaded_flyers = flyers.loaded;
  14. this.error = flyers.error;
  15.  
  16. });
  17. this.store.dispatch( new flyersActions.CargarFlyers() );
Add Comment
Please, Sign In to add comment