Using vue.js I am trying to to make odd rows with a class of light-orange and even rows with a class or green
In my template, I have
<div class="col-md-3" v-for="m in menu">\
<div class="menu-item light-orange">{{#if Math.abs($index % 2)}}\
<a href="#feature-modal" data-toggle="modal">\
<i class="fa {{m.icon}}"></i>\
<p>Feature</p>\
</a>\
</div>\
</div>\
In addition to the Math.abs there, I tried a few other math related functions... all with the same result... ie. Always showing the text in the if statement