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