diff --git a/modules/schematics/src/action/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.actions.ts b/modules/schematics/src/action/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.actions.ts index a2730780cf..b55eb051ac 100644 --- a/modules/schematics/src/action/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.actions.ts +++ b/modules/schematics/src/action/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.actions.ts @@ -1,11 +1,11 @@ import { Action } from '@ngrx/store'; export enum <%= classify(name) %>ActionTypes { - <%= classify(name) %>Action = '[<%= classify(name) %>] Action' + Load<%= classify(name) %>s = '[<%= classify(name) %>] Load <%= classify(name) %>s' } export class <%= classify(name) %> implements Action { - readonly type = <%= classify(name) %>ActionTypes.<%= classify(name) %>Action; + readonly type = <%= classify(name) %>ActionTypes.Load<%= classify(name) %>s; } -export type <%= classify(name) %>Actions = <%= classify(name) %>; +export type <%= classify(name) %>Actions = Load<%= classify(name) %>s; diff --git a/modules/schematics/src/effect/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.effects.ts b/modules/schematics/src/effect/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.effects.ts index 63413c05f3..d3d6dfb92c 100644 --- a/modules/schematics/src/effect/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.effects.ts +++ b/modules/schematics/src/effect/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.effects.ts @@ -6,7 +6,7 @@ import { Actions, Effect } from '@ngrx/effects'; export class <%= classify(name) %>Effects { <% if(feature) { %> @Effect() - effect$ = this.actions$.ofType(<%= classify(name) %>ActionTypes.<%= classify(name) %>Action); + effect$ = this.actions$.ofType(<%= classify(name) %>ActionTypes.Load<%= classify(name) %>s); <% } %> constructor(private actions$: Actions) {} } diff --git a/modules/schematics/src/reducer/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.reducer.ts b/modules/schematics/src/reducer/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.reducer.ts index fcdd772820..d04b51cb80 100644 --- a/modules/schematics/src/reducer/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.reducer.ts +++ b/modules/schematics/src/reducer/files/__path__/__name@dasherize@if-flat__/__name@dasherize__.reducer.ts @@ -12,7 +12,7 @@ export const initialState: State = { export function reducer(state = initialState, action: <% if(feature) { %><%= classify(name) %>Actions<% } else { %>Action<% } %>): State { switch (action.type) { <% if(feature) { %> - case <%= classify(name) %>ActionTypes.<%= classify(name) %>Action: + case <%= classify(name) %>ActionTypes.Load<%= classify(name) %>s: return state; <% } %>