I am using the ngrx store as a reference by following this example:
Within the code in example.reducer.ts, there is this snippet:
export const { selectAll: selectAllCars } = adapterCar.getSelectors();
This function is then called from outside with this approach:
export const selectAllCars = createSelector(selectCarState, fromExample.selectAllCars);
The use of selectAll
is not mentioned,
I have tried to understand it on my own but I am having trouble. Can you please explain how it functions?