Created
July 8, 2013 08:02
-
-
Save spoike/5947015 to your computer and use it in GitHub Desktop.
Hodor... hodor-hodor. HODOR!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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