I am attempting to conceal a link ("myprofile") beneath an image in VUE.JS when the if-statement is not met. However, when I insert the v-if inside the vue-router or div tag, the entire image/div-tag becomes hidden. How can I implement an if-statement that only affects the link?
Here is the code snippet:
<router-link v-if="condition == true" class="nav-link" to="/myprofile">
<div
class="img"
:style="{ 'background-image': 'url' }"
/>
</router-link>