import { createSelector } from '@ngrx/store' ; import * as fromFeature from '../reducers' ; export const getCategories = createSelector ( fromFeature . coreState , ( state ) => state . categories ) ; export const categoryDictionary = createSelector ( getCategories , fromFeature . getCategoryDictionary ) ;