I am looking for a way to send that comment.id in v-for to my userimage in computed property
<template>
<div>
<div id="comments" v-for="(comment,i) in allcomments">
<div id="comment">
<img class="userimg" :src="userimg" alt="">
</div>
</div>
</div>
</template>
and this is my computed
computed:
{
allcomments()
{
return this.$store.getters.comments;
},
userimage()
{
}
},
I don't want to do it by methods. I just want to do that by computed
please help me.