Code in Vuetify:
<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" is iterating through an array
of objects
, which have different properties:
data () {
return {
months: [
{
month: 'Gen',
target: ''
},
{
month: 'Feb',
target: ''
},
and so on.
How can I conditionally apply the class underlined
in the first code block, so that can underline only some months and not all of them?
Thank you in advance!