Skip to content

Instantly share code, notes, and snippets.

@jasonblewis
Created April 24, 2017 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonblewis/d050f9c5e22a336b1c3cd59f2ef0c306 to your computer and use it in GitHub Desktop.
Save jasonblewis/d050f9c5e22a336b1c3cd59f2ef0c306 to your computer and use it in GitHub Desktop.
<template>
<div id="app" class="column is-half is-offset-one-quarter has-text-centered">
<h1>Buttons!</h1>
<button class="button is-large" v-on:click="buttonClick($event,'G')">g</button>
<button class="button is-large" v-on:click="buttonClick($event,'C')">c</button>
<button class="button is-large" v-on:click="buttonClick($event,'E')">e</button>
<button class="button is-large" v-on:click="buttonClick($event,'A')">a</button>
<button class="button">test</button>
</div>
</template>
<script>
export default {
name: 'app',
methods: {
buttonClick: function(event,note) {
console.log("clicked ", note);
currentNote = note;
}
},
data () {
return {
msg: 'Welcome to Your Vue.js App',
currentNote: 'C'
}
}
}
</script>
<style>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment