i have an object which contains a property.Like this
{
"QuestionId":31,
"ImportanceLevel":53
}
I bind the ImportanceLevel to a div and now i want to apply foreach loop that should run till it reaches the value of ImportanceLevel. Here is binding.
<div data-bind="foreach:ImportanceLevel">
<span></span>
</div>
Here i want to generate span 3 times how can i do that? If this is not the proper way as i assume so what is an alternative. this generates some ui like this
If level is three it will display 3 circles.