You generate an effect by typing the following:
ng generate effect jedis
This will produce the files:
- jedis.effect.ts
- jedis.effect.spec.ts
The effects file looks like this:
import { Injectable } from '@angular/core';
import { Actions, Effect } from '@ngrx/effects';
@Injectable()
export class JedisEffects {
constructor(private actions$: Actions) {}
}