我有以下导出:
import { compose } from '@ngrx/core/compose';
export default compose(storeLogger(), combineReducers)({
events: fromEvents.eventsReducer,
subscriptions: fromSubscriptions.subscriptionsReducer
});
我想导出为命名函数,而不是默认值。我怎么能这样做?
答案 0 :(得分:2)
试试这个:
import { compose } from '@ngrx/core/compose';
export const name = compose(storeLogger(), combineReducers)({
events: fromEvents.eventsReducer,
subscriptions: fromSubscriptions.subscriptionsReducer
});