for example:
< tr vmurfort = "item in Data" >
<td class="red">{{item.td}}</td>
< / tr >
Data = [td:12,td:14]
what if I want to add a separate red style for td > 13?
for example:
< tr vmurfort = "item in Data" >
<td class="red">{{item.td}}</td>
< / tr >
Data = [td:12,td:14]
what if I want to add a separate red style for td > 13?
<tr v-for="item in Data">
<td :class="{ red: item.td>13 }">{{item.td}}</td>
</tr>
v-bind:class {'red':item.td > 13}