Created
April 24, 2017 06:32
-
-
Save jasonblewis/d050f9c5e22a336b1c3cd59f2ef0c306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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