I would like to show a div when hovering over an element in vue.js. But I can\'t seem to get it working.
It looks like there is no event for hover or mouseover in vue.j
There's no need for a method here.
HTML
<div v-if="active"> <h2>Hello World!</h2> </div> <div v-on:mouseover="active = !active"> <h1>Hover me!</h1> </div>
JS
new Vue({ el: 'body', data: { active: false } })