0👍
try this:jsfiddle,i have run this and success.
<div id="app" v-on:mouseover="mm">
{{message}}
<ul v-show="active">
<li>Test vue</li>
</ul>
</div>
this is the js:
new Vue({
el: '#app',
data: {
active:true,
message: 'Hello Vue.js!'
},
methods: {
mm: function(){
alert(1);
this.active=!this.active;
}
}
})
- [Vuejs]-Unable to toggle drop down value based on other column
- [Vuejs]-When using Vue.js in existing HTML CSS website, the arrangement of the div is not as intended
Source:stackexchange.com