Skip to content

Instantly share code, notes, and snippets.

<!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">
js cookbook/scripts/docs.js
js funcunit/run envjs cookbook/qunit.html
cookbook/qunit.html
js jquery/generate/scaffold Cookbook.Models.Recipe
js jquery/generate/app cookbook
<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"/>
viewModel.personName(‘another name’);
var viewModel = {
personName: ko.obervable(’Marco Francke’)
};
My name is <b>Marco Francke</b>