I am working with VueJS. Given a markup which looks like this:
<template v-for="item in some_counter">
<p v-if="item.some_param1 !== 'None'">
[[ item.some_param2 ]]
</p>
</template>
I would like to display the number of times the condition is met. So, if the condition is met 3 times, I would like to see the <p>
markup like so:
<p>1, some_value1</p>
<p>2, some_value2</p>
<p>3, some_value3</p>
where 1,2,3
are the times the condition is met.
How do I go about achieving this?