• 0

knockout.js if binding with mutiple booleans or logical operator

Here is the syntax for checking mutiple conditions with knockout's if data bindings.

<div data-bind="if: (isFoo() && isBar())"> </div>

<div data-bind="if: (isFoo() && isBar())"> </div>