I'm immigrating my code to Vue.js so pretty new to Vue. As you see the screenshot(link below), There are 4 columns inside div with columns
class name. I was trying to use v-if to add the div(class columns
) conditionally but I have no idea how to get a length of columns elements in Vue.
Example Code
<template lang="pug">
.container
.columns(v-if="") // add this conditionally
.column.is-3.vid(v-for='item in items')
.panel
p.is-marginless
a(href=item.videoId)
img(src=item.thumbnail)
.panel.vidInfo
.columns.hax-text-centered
.column
.panel-item.reddit-ups
| item.score
i.fa.fa-reddit-alien.fa-2x
.panel-item.reddit-date
i.fa.fa-calendar.fa-2x
</template>