Using Vuetify components:
<v-layout row wrap>
<v-flex xs2 v-for="(month, key) in months" :key ="key">
<router-link class = "decoration" :to="month.target">{{(month.month)}}</router-link>
</v-flex>
The "v-for" loop is going through an array
of objects
with different properties:
data () {
return {
months: [
{
month: 'Gen',
target: ''
},
{
month: 'Feb',
target: ''
},
and so forth.
Is there a way to selectively add the class underlined
to certain months in the first code block, rather than all of them?
Appreciate any help on this matter!