Skip to content

Instantly share code, notes, and snippets.

@lydemann
Created September 19, 2022 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lydemann/a77c1dfee67a2dfded6bc2cc2ecdc757 to your computer and use it in GitHub Desktop.
Save lydemann/a77c1dfee67a2dfded6bc2cc2ecdc757 to your computer and use it in GitHub Desktop.
import { createSelector } from @ngrx/store’;
import { selectIsViewReady, selectProductsList } from ../core’;
export const selectProductListViewModel = createSelector(
selectIsViewReady,
selectProductsList,
(ready, products) => ({ ready, products })
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment