I recently came across a discussion stating that combining v-if and v-for in Vue.js is not recommended. I encountered an error in my IDE while attempting to use both together. Can someone guide me on how to properly separate the v-if and v-for directives in my code to align with the style guide?
<div
v-for="(value, key, index) in items"
v-if="value.level === undefined || value.level < level"
:key="key"
>
The 'level' value is also calculated as computed property
computed: {
level() {
return (
user.access>3
);
}
},