Side-Effect refresh survivor
Our first step is adding the EffectsModule in our app.module.ts
Registering root effects
After you've written your Effects class, you must register it so the effects start running. To register root-level effects, add the EffectsModule.forRoot()
method with an array of your effects to your AppModule
.app.module.ts check here
Now, we also need to add EffectsModule.forFeature([])
in the module we want to use but in this case is forFeature
instead forRoot
.
Last updated