0👍
Change
:style="{backgroundColor: color}"
to
:style="'background: ' + choseColor()'"
and
choseColor() {
return ((this.counter % 2) !== 0) ? `grey` : 'white';
}
try it out. It should solve it.
- [Vuejs]-Vuejs with namespaced modules and unknow mutation type
- [Vuejs]-Can not use @johmun/vue-tags-input with VueJS and Laravel/Spark
Source:stackexchange.com