2👍
✅
If your intent on doing this using Vue then that seems like a reasonably clean solution to me.
Alternatively you could look at using :nth-child(even)
and :nth-child(odd)
CSS selectors?
Source:stackexchange.com