Skip to content

Instantly share code, notes, and snippets.

@thisiszoaib
Created October 29, 2020 07:46
Show Gist options
  • Select an option

  • Save thisiszoaib/a8d8797cfc8ac431360a2fa49ed6eec6 to your computer and use it in GitHub Desktop.

Select an option

Save thisiszoaib/a8d8797cfc8ac431360a2fa49ed6eec6 to your computer and use it in GitHub Desktop.
card flip 4
export class GameCardComponent implements OnInit {
data: CardData = {
imageId: "pDGNBK9A0sk",
state: "default"
};
cardClicked() {
if (this.data.state === "default") {
this.data.state = "flipped";
} else {
this.data.state = "default";
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment