Skip to content

Instantly share code, notes, and snippets.

@GrandSchtroumpf
Created April 12, 2018 12:21
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 GrandSchtroumpf/5ae44576466404af7af7a3d0a1f72760 to your computer and use it in GitHub Desktop.
Save GrandSchtroumpf/5ae44576466404af7af7a3d0a1f72760 to your computer and use it in GitHub Desktop.
The selectors for the NGRX version of Angular and Ethereum
import { EthState } from './eth.reducers';
export const getAccounts = (state: EthState) => state.eth.accounts;
export const getDefaultAccount = (state: EthState) => state.eth.selected;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment