Skip to content

Instantly share code, notes, and snippets.

@4bu
Created December 13, 2011 15:42
Show Gist options
  • Save 4bu/1472587 to your computer and use it in GitHub Desktop.
Save 4bu/1472587 to your computer and use it in GitHub Desktop.
<!-- VIEW -->
My name is <b data-bind=”text: personName“></span>
// VIEW-MODEL
var viewModel = {
personName: ’Marco Francke’
};
// ACTIVATE KNOCKOUT
ko.applyBindings(viewModel);
@lstak
Copy link

lstak commented Dec 15, 2011

Line 2 should be: My name is <b data-bind=”text: personName“></b>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment