Is there a way to do something like this:
<router-link to="/">
<img src=" :active = isExactActive ? pic_active.png : pic_inactive.png}}" /> //Somethink like this
<div class="text">Home</div>
</router-link>
Img src should be depending on whether link is exact active or not. If active pic_active should show, if not active pic-inactive should show. How can I make this work? I am a beginner to vue and I have been searching for hours...
Thanks!