Exporting Selectors
import {buildState} from '@briebug/ngrx-auto-entity';
import {Customer} from 'models';
const { selectors } = buildState(Customer);
export const {
selectAll: allCustomers,
selectCurrentEntity: currentCustomer
} = selectors;Selectivity with Selectors
this.store.pipe(select(selectAllCustomers)); // Repetition of 'select' here. :(
this.store.pipe(select(allCustomers)); // No repetition, natural language flow! :)Last updated