How to get started with Knockout.js

Once you get into doing more client side JavaScript code with business applications and REST services you are going to run into the question of how to construct the client side HTML required to show the data to the users.   Using jQuery Assuming most people are going to be using jQuery on the client you might start with some jQuery code to generate HTML. Your code might look something like this $(function () { $("#btn").click(function () { $.getJSON("/services/books").then(function (books) { $.each(books, function () { $("<li>").text(this.Title + " by " + this.Author).appendTo("#books"); }); }); }); }); The code isn’t very … Continue reading How to get started with Knockout.js