Knockout If Binding with multiple conditions

http://stackoverflow.com/questions/15307504/knockout-js-if-binding-on-multiple-booleans

by daedalus28

HTML

This always shows
<div data-bind="if: (property.aTrueValue && property.anotherTrueValue)">
 This always shows if both properties are true
</div>

JavaScript

ko.applyBindings({
    property: { 
        aTrueValue:ko.observable(true), 
        anotherTrueValue:ko.observable(true)
    }
});