Skip to content

Instantly share code, notes, and snippets.

@ilonacodes
Last active April 20, 2020 07:25
Show Gist options
  • Save ilonacodes/1beffad4237c2b17aa88c750fb1a20b5 to your computer and use it in GitHub Desktop.
Save ilonacodes/1beffad4237c2b17aa88c750fb1a20b5 to your computer and use it in GitHub Desktop.
index.html | Vue.js Implementation
<!-- index.html | Vue.js Implementation -->
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dice Rolling Simulator</title>
<link rel="stylesheet" href="./index.css">
</head>
<body>
<div id="app" v-on:click="roll">
<div class="dice"
v-for="dice in dices"
v-bind:data-dots="dice.dots"
>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
<script src="./lib/vue-2.6.11.min.js"></script>
<script src="./index.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment