I'm looking to alternate the background colors of the rows, with the first row being black and the second row being white, continuing in this sequence.
<template>
<div
v-for="(activity, index) in logActivities"
:key="index"
:class="[index % 2 === 0 ? 'row bg-black' : 'row bg-white']"
>
<div class="col-6 padding-10">{{ activity.activity }}</div>
<div class="col-6 padding-10">
{{ toGetRelativeTime(activity.createdAt) }}
</div>
</div>
</template>