import { combineReducers } from 'redux' ; import { composeReducers , defaultFormReducer } from '@angular-redux/form' ; import { routerReducer } from '@angular-redux/router' ; import { createAnimalAPIReducer } from '../animals/api/reducer' ; import { ANIMAL_TYPES } from '../animals/model' ; export const rootReducer = composeReducers ( defaultFormReducer ( ) , combineReducers ( { elephant : createAnimalAPIReducer ( ANIMAL_TYPES . ELEPHANT ) , lion : createAnimalAPIReducer ( ANIMAL_TYPES . LION ) , router : routerReducer } ) ) ;