Skip to content

Instantly share code, notes, and snippets.

@gkatsanos
Created September 11, 2016 19:15
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 gkatsanos/e3d5818ef28e9a49eb701014bfc7a86a to your computer and use it in GitHub Desktop.
Save gkatsanos/e3d5818ef28e9a49eb701014bfc7a86a to your computer and use it in GitHub Desktop.
onSelect(card: Card): void {
this.getDetailedInfo(card);
}
getDetailedInfo(card) {
this.cardService
.getDetailedInfo(card)
.subscribe((card: Card) => {
this.card = this.selectedCard = card;
this.dataStore.push(card);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment