Last active
October 28, 2015 06:41
-
-
Save freshcutdevelopment/cfd07ebdf6e3dc7bc29b to your computer and use it in GitHub Desktop.
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
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