Generating an effect

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) {}
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.237.131