title: Angular Js ng-style Conditional evaluating px
body: <p>Trying to set the style of an element based on its height. (i.e., if height &lt; X 'style 1', else 'style 2'.</p>
  
  <p>The syntax is correct, but the evaluation of the height property of the  in pixels is the problem.</p>
  
  <pre><code>ng-class="{true:'panel panel-success', false:'panel panel-danger'}[documents.length &gt; 0]"
  </code></pre>
  
  <p>works perfect, but</p>
  
  <pre><code>ng-class="{true:'panel panel-success', false:'panel panel-danger'}[height &lt; 200px]"
  </code></pre>
  
  <p>does not work</p>