[Vuejs]-Dynamic CSS Grid using Vue

0👍

as @tony19 said… I’m not sure exactly what you are trying to accomplish… but maybe something like this could work for you….

<div class="nugget-grid-item" v-for="cell of cells" :key="cell">
 <div id="mychild1" v-if="cell === 'foo'></div>
 <div id="mychild2" v-else-if="cell === 'boo'></div>
 <div id="mychild3" v-else-if="cell === 'doo'></div>
</div>

Leave a comment