<div id="app">
  <div id="el1" @click="foo($event)">click me</div>
 </div>
new Vue({
  el: '#app',
    methods: {
      foo: function(event) {         alert(event.currentTarget.innerHTML)
          }
      }
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.11/vue.min.js