Skip to content

Instantly share code, notes, and snippets.

@freshcutdevelopment
Last active October 28, 2015 06:41
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 freshcutdevelopment/cfd07ebdf6e3dc7bc29b to your computer and use it in GitHub Desktop.
Save freshcutdevelopment/cfd07ebdf6e3dc7bc29b to your computer and use it in GitHub Desktop.
The status of the website is: <span data-bind="text: status"></span>
<script type="text/javascript">
var viewModel = {
status: ko.observable() // Initially blank
};
viewModel.status("All green."); // Text appears
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment