The following command:
ng generate @ngrx/schematics:feature customName
generates effects file:
import { Injectable } from '@angular/core';
import { Actions, Effect, ofType } from '@ngrx/effects';
import { CustomNameActionTypes } from './custom-name.actions';
@Injectable()
export class CustomNameEffects {
@Effect()
loadFoos$ = this.actions$.pipe(ofType(CustomNameActionTypes.LoadCustomNames));
constructor(private actions$: Actions) {}
}
I think that instead of loadFoos$ it should be loadCustomNames$:
import { Injectable } from '@angular/core';
import { Actions, Effect, ofType } from '@ngrx/effects';
import { CustomNameActionTypes } from './custom-name.actions';
@Injectable()
export class CustomNameEffects {
@Effect()
loadCustomNames$ = this.actions$.pipe(ofType(CustomNameActionTypes.LoadCustomNames));
constructor(private actions$: Actions) {}
}
"@ngrx/schematics": "^6.1.0",
"@angular/core": "^6.1.0",
node: 10.9.0
[x] Yes (Assistance is provided if you need help submitting a pull request)
[ ] No
馃憤, do you mind sending a Pull Request to get this solved?
Sure! I'll do it today or tomorrow at the latest.
Thanks @krzysztof-grzybek!
Since the PR was merged, this can be closed, right?