DEV Community

loading...

Don’t Use v-if with v-for Elements

Mahedi Hasan
・1 min read

Sometimes we use v-if conditionals with v-for to filter our data. It’s super tempting to want to use v-if with v-for in order to filter elements of an array.

https://www.codechief.org/article/dont-use-v-if-with-v-for-elements

Discussion (0)