In this article, I'm going to look at the JavaScript data-binding library Knockout.js. I'll expand on my previous article by removing the external templating library and using Knockout to bind and render the data.
One important thing to point out is that I won't be touching the server-side code at all. One goal of my previous article was to expose my application's functionality as raw data -- JSON data, to be precise. By removing the use of partial views (which are data + presentation combined), my options for how I work with the data have increased enormously. Last time, I used EJS (Embedded JavaScript). Today, I'll use Knockout. In the future, who knows? But the important point is that because of my architecture, I have options.
Your new post is loading...