Example
var app = new Vue({
el: '#app',
data: {
isActive : false,
chkGenres : [],
genres : [
{ "id" : "1", "name" : "Apple" },
{ "id" : "2", "name" : "Banana" },
{ "id" : "3", "name" : "Peach" }
]
},
methods: {
isChecked(){
this.isActive = ! this.isActive;
}
}
});
DEMO
Please check my demo
https://jsfiddle.net/byxda8eq/9/
What I want
I want to toggle class "active" to li tag when specified checkbox is checked or not.
I can not find a way to do that cuz my brain does not working everyday.
How to?
<li>tag? What checkbox?