Starting point for Knockout Examples
Latest copy of: -jQuery templates -KnockoutJS -KO Mapping plugin
by vbfischer
HTML
<script src="https://github.com/jquery/jquery-tmpl/raw/master/jquery.tmpl.js"></script>
<script src="https://github.com/SteveSanderson/knockout/raw/master/build/output/knockout-latest.debug.js"></script>
<script src="https://github.com/SteveSanderson/knockout.mapping/raw/master/build/output/knockout.mapping-latest.debug.js"></script>
<p>First name: <span data-bind="text: firstName">todo</span></p>
<p>Last name: <span data-bind="text: lastName">todo</span></p>
JavaScript
// This is a simple *viewmodel* - JavaScript that defines the data and behavior of your UI
var viewModel = {
firstName: "Bert",
lastName: "Bertington"
};
// Activates knockout.js
ko.applyBindings(viewModel);