let link = `<router-link :to="{name : 'profile' , params : { slug : ${response.data.nickname} }}">
<img src="${response.data.avatar}" class="card__image">
</router-link>`;
$('body').append(link)
After rendering in HTML;
<router-link :to="{name : 'profile' , params : { slug : omerf }}">
<img src="http://localhost:8000/storage/default.png" class="card__image">
</router-link>
Is there a way to achieve the following using the append method;
<a href="/profile/omerf">
<img src="http://localhost:8000/storage/default.png" class="card__image">
</a>