Skip to content

Instantly share code, notes, and snippets.

@brakmic
Created April 11, 2017 11:55
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 brakmic/e108115898354f038d8b7a6016da0172 to your computer and use it in GitHub Desktop.
Save brakmic/e108115898354f038d8b7a6016da0172 to your computer and use it in GitHub Desktop.
alternative way of selecting customer state
this.store.select(appState => appState.customerState).subscribe(subState => {
const customerInstance = subState.customer; // not an observable but a concrete instance
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment