Skip to content

Instantly share code, notes, and snippets.

@jecfish
Created August 31, 2017 15:14
Show Gist options
  • Save jecfish/458b1dde07dec9ed6babb1ceaf7b3c9e to your computer and use it in GitHub Desktop.
Save jecfish/458b1dde07dec9ed6babb1ceaf7b3c9e to your computer and use it in GitHub Desktop.
<!-- app.template.html -->
<div>
<my-top-bar on-reset-clicked="resetGame"></my-top-bar>
<my-top-message time="{{currentTime}}"></my-top-message>
<my-cards cards="{{cards}}" on-card-flipped="startGame" on-all-cards-matched="stopGame"></my-cards>
<template is="dom-if" if="{{isGameCompleted}}">
<my-pop-up-modal time="{{currentTime}}" on-reset-clicked="resetGame"></my-pop-up-modal>
</template>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment