I have this for loop in my asp.net page, then in the same site I have to do the same but in vue.js, I'm not familiar with vue I've check the v-for but I can't manage to get the same result, can someone show me the right way please?
This is my for loop in asp.net, I just need to translate this in vue.js :
<div>
@for (i = 1; i <= 5; i++)
{
if (i <= (rating))
{
<i class="icon-ned icon-ned-star red"></i>
}
else
{
<i class="icon-ned icon-ned-star gray"></i>
}
}
</div>
Any ideas ?