I\'m trying to implement this Knockout example using ASP MVC 3\'s \"Razor\" view engine.
The first topic covers simple data binding of a C# array using the standard
I ran into this same problem, and discovered that it was my own stupidity that caused the issue (which it so often is). I forgot to wait until the DOM loaded to call ko.applyBindings(viewModel) - so simply using:
$(document).ready(function () { ko.applyBindings(viewModel); });
So the whole script as
This worked with knockout-1.2.1.js and jquery-1.5.1.js