I am using the following example in HTML/Knockout to show my students the differences in implementation between various javascript data binding libraries. I have already created one in Angular.js and Knockout.js. Now I need this same page converted into a simple Backbone.js example. I only know Knockout.js. I was able to create the Angular.js example in 20 minutes but I'm having trouble finding the help I need to convert this into a Backbone.js example.
All it does is display three input boxes with a string and the same string following afterwards. When I change the string in the input box the text following it will update as well - as I type:
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Minimum Example</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/knockout/2.2.0/knockout-min.js"></script>
<script>
var items = [
{ "description": ko.observable("coffee pot") },
{ "description": ko.observable("nerf gun") },
{ "description": ko.observable("phone") }
];
</script>
</head>
<body>
<h1>KnockoutJS</h1>
<div>
<p>Stuff on my desk:</p>
<ul data-bind="foreach: items">
<li>
<input data-bind="value: description, valueUpdate: 'afterkeydown'" /><span data-bind="text: description" />
</li>
</ul>
</div>
<script>
ko.applyBindings(items);
</script>
</body>
</html>
Thank you in advance!