I need to display $index+1 in a table.
$index+1
If I just use the $index all the elements will start from 0, I need to start at 1.
$index
Here\'s the
I found the answer here: Knockout is not evaluating an expression when using $index in a binding
In order to use it <span data-bind="text: $index() + 1"></span>
<span data-bind="text: $index() + 1"></span>
$index is an observable. So you need to use it this way :
<span data-bind="text: ($index() + 1)"> </span>