Edit in JSFiddle

new Vue({
  el: "#app",
  methods: {
  	say: function (message) {
      alert(message)
    }
  }
})
<div id="app">
  <button v-on:click="say('hi')">Say hi</button>
  <button v-on:click="say('what')">Say what</button>
</div>