Skip to content

Instantly share code, notes, and snippets.

viewModel.personName(‘another name’);
<html>
<head>
<script src="jquery-1.7.1.min.js"></script>
<script src="jquery.tmpl.js"></script>
<script src="ko.js"></script>
</head>
<body>
You have <span data-bind="text: wishes().length"></span> wishes.
<form data-bind="submit: add">
<input type="text" data-bind="value: enteredWish" placeholder="pleace add your wish"/>
js jquery/generate/app cookbook
js jquery/generate/scaffold Cookbook.Models.Recipe
cookbook/qunit.html
js funcunit/run envjs cookbook/qunit.html
js cookbook/scripts/docs.js
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>wishlist</title>
</head>
<body>
<script type='text/javascript' src='../steal/steal.js?wishlist'></script>
You have <span class="js-wish-counter">0</span> wishes.
<form class="js-add-wish">