Example 5
The click binding
John's age is .
The event binding
Bring your Mouse over here to view the information about John.
John's favorite site is itai.apphb.com.
The checked binding
Is married
The enable and disable Our checkbox is binded to isMarried isMarried enables the textbox to put the wife name ( self.wife = ko.observable(person.wife);)
Is married
Wife's name:
Test - get wifes current name
The options binding
The selected Options binding with Options binding
Control flow bindings
The foreach binding
| First name | Age |
|---|---|
alternative syntax using ko foreach "comment"
| First name | Age |
|---|---|
The if and ifnot bindings
Show about:
Itai's favorite site is itai.apphb.com. (using if binding)
Itai's favorite site is itai.apphb.com. (using ifnot binding)