Edit in JSFiddle

var alertclickexample = new Vue({
  el: '#alert-click-example',
  methods: {

    showAlert: function () {
      alert('Aaah hi!')
    }

  }
})
<div id="alert-click-example">
  <button id="alert-button" v-on:click="showAlert">Display Alert</button>
</div>