Game.vue 412 Bytes
Newer Older
PLN (Algolia) committed
1 2 3 4
<template>
    <div class="hello">
        <h1>Game on!</h1>
        <h2>{{ msg }}</h2>
5
        <h3>Count: {{ count }}</h3>
PLN (Algolia) committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
        <button @click="increment">+</button>
        <button @click="decrement">-</button>
    </div>
</template>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
    h1 {
        margin: 40px 0 0;
    }

    a {
        color: #42b983;
    }
</style>