Skip to content

Instantly share code, notes, and snippets.

@spoike
Created July 8, 2013 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spoike/5947015 to your computer and use it in GitHub Desktop.
Save spoike/5947015 to your computer and use it in GitHub Desktop.
Hodor... hodor-hodor. HODOR!
define(['ko'], function(ko) {
var viewModel = function () {
};
viewModel.prototype.hodor = ko.computed(function() {
return "HODOR!";
});
return function() {
return new viewModel();
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment