Very familiar with Knockout, and am trying KnockoutMVC for a new project.
However I'm seeing an issue with the names of my fields in my C# model and the Javascript / Knockout view model, such that the Ko bindings aren't working.
My model has fields such as:
string FirstName
string LastName
etc,
but the Javascript view model is showing as
first_name
last_name
So my binding in the cshtml file of: <td @custs.Bind.Text(m => m.FirstName)></td>
turns into: <td data-bind="text : $data.FirstName"></td>
but the ViewModel is:
var viewModelJs = {"Customers":[{"id":44,"password":null,"company":"","first_name":"First","last_name":"Test", (more here)
ko.applyBindings(viewModelJs);
Help? Would like to use KnockoutMVC, but this is a deal breaker...
Thanks.