title: How can I make conditional binding in knockout.js?
body: <p>I tried this one :</p>
  
  <pre><code>&lt;div data-bind="attr: {class: itemSelected? 'selected' : 'unselected' }"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>But it does not work :) </p>