Why is this, when I try to use knockout.js to bind some text with $ index, I get the function code instead of a number?
<tbody data-bind="foreach: MyList"> <tr> <td><span data-bind="text: $index + 1"></span></td> </tr> </tbody>
Instead of getting 1, 2, 3, etc. I get the following:

You can see from the last character in the image above that my zero index is added to 1. If I remove '+ 1' from my binding, I get 0, 1, 2 instead of a function.
How to report a knockout to evaluate the expression? I have the same problem when I submit a form. My string fields are passed as a function instead of a value.
rboarman Jul 02 2018-12-12T00: 00Z
source share