We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 137b37d commit c5b6475Copy full SHA for c5b6475
index.html
@@ -12,18 +12,23 @@
12
<option value="icon-spades">Card Game</option>
13
</select>
14
<input v-model="game">
15
- <p>
16
- <span :class="type"></span>
17
- {{ game }}
18
- </p>
+ <button @click="games.push({game: game, type: type})">Add</button>
+ <p v-if="games.length == 0">Zarro Boords!</p>
+ <ul v-else>
+ <li v-for="g in games">
19
+ <span :class="g.type"></span>
20
+ {{ g.game }}
21
+ </li>
22
+ </ul>
23
</div>
24
<script src="node_modules/vue/dist/vue.js"></script>
25
<script>
26
var app = new Vue({
27
el: '#app',
28
data: {
- game: 'Snakes and Ladders',
- type: 'icon-dice'
29
+ game: '',
30
+ type: 'icon-dice',
31
+ games: []
32
}
33
})
34
</script>
0 commit comments