This sample shows how to create a simple model and apply multiple bindings that define view appearance depending on the certain state.

The sample calculates button clicks. When button is clicked 3 times it becomes inactive, instead the other button providing the ability to reset clicks number appears. Logic of click count is hosted on the server and is set by RegisterClick and ResetClicks methods. HasClickedTooManyTimes computed property is subscribed for the the property containing the number of clicks NumberOfClicks. It manages availability of the main button and ability to reset click number.

The original example: http://knockoutjs.com/examples/clickCounter.html