I have two nested v-for elements that look like:
<div class="category" v-for="(category, categoryIndex) in categories">
<div class="product" v-for"(product, productIndex) in cateogry)">
{{product.name}}
</div>
</div>
I would like to show only the first five products, regardless of the number of categories and the number of products in each category.
How would I get the cumulative index count (in relation to the total number of products that's been displayed from the categoryIndex parent array) inside of the second v-for element?
slice()your products into an array with 5 products.