src/app/car/reducers/term.reducer.ts
import {Action} from '@ngrx/store';
import {CarAction} from '../actions/cars';
const types: string[] = [];
export const term = (state: string = '', action: Action ) => {
types.push(action.type);
switch (action.type) {
case CarAction.SEARCH:
return action.payload;
default:
return state;
}
};