SHARE
TWEET

Untitled

a guest Jul 18th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { createFeatureSelector, Selector, createSelector } from '@ngrx/store';
  2. import {
  3.   ClubModuleState,
  4.   clubStateName,
  5.   ClubsState,
  6.   SortState
  7. } from './clubs.state';
  8.  
  9. const selectClubModule = createFeatureSelector<ClubModuleState>(clubStateName);
  10.  
  11. export const selectClub: Selector<object, ClubsState[]> = createSelector(
  12.   selectClubModule,
  13.   (state: ClubModuleState) => state.clubs
  14. );
  15.  
  16. export const selectSortState: Selector<object, SortState> = createSelector(
  17.   selectClubModule,
  18.   (state: ClubModuleState) => state.sort
  19. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top