OKyJIucT
6/14/2017 - 9:53 AM

event in methods

event in methods

<div id="foo" v-on:click="select()">...</div>

methods: {
    select: function() {
        targetId = event.currentTarget.id;
        console.log(targetId); // returns 'foo'
    }
}