title: AngularJS ng-class if-else expression
body: <p>With <code>AngularJS</code> I'm using <code>ng-class</code> the following way:</p>
  
  <pre><code>&lt;div class="bigIcon" data-ng-click="PickUp()" 
  ng-class="{first:'classA', second:'classB', third:'classC', fourth:'classC'}[call.State]"/&gt;
  </code></pre>
  
  <p>I'm wondering if I can use the <code>if-else</code> expression to do something similar to this:</p>
  
  <pre><code>&lt;div class="bigIcon" data-ng-click="PickUp()" 
  ng-class="{first:'classA', second:'classB', else:'classC'}[call.State]"/&gt;
  </code></pre>
  
  <p>So whenever <code>call.State</code> differs from <code>first</code> or <code>second</code> use <code>classC</code> and avoid specifying each value?</p>