<script type="text/javascript">
$(document).ready( function () {
});
</script>
<script>
// MANUAL Here's my data model
// var ViewModel = function (first, last) {
// this.firstName = ko.observable(first);
// this.lastName = ko.observable(last);
// this.fullName = ko.computed(function () {
// Knockout tracks dependencies automatically. It knows that fullName depends on firstName and lastName,
//because these get called when evaluating fullName. text/x-jquery-tmpl template:{name:'friendsTemplate', foreach:friend}<li data-bind="text: name"></li>
// return this.firstName() + " " + this.lastName();
// }, this);
// };
// $(document).ready(function () {
// ko.applyBindings(new ViewModel("Planet", "Earth")); // This makes Knockout get to work???? text/html
// });
/*
<div data-bind="template:'friendsTemplate'"></div>
<ul>
{{ each(index,friend) friends }}
<li>${friend.name}</li>
{{/each}}
</ul>
*/
</script>
You have asked for gift(s)