Notice! using effects to load data is a antipattern!
read more about this here
- Define a Effect class
- Define a Action when you are waiting for Books
- Define a effect which Triggers the
BookDataService.getBooks()
- Import EffektsModule in your Rootmodule
EffectsModule.forRoot([]),
- Import EffektsModule in your BookModule
EffectsModule.forFeature([BookEffects]),
Notice! using effects to load data is a antipattern!
read more about this here
BookDataService.getBooks()EffectsModule.forRoot([]),EffectsModule.forFeature([BookEffects]),