title: AngularJS ng-class multiple conditions with OR operator
body: <p>I try to find out the good syntax for adding classes depending on angular values.
  I want to activate a class regarding 2 conditions (one on live user changes, and one on loading datas) with a OR operator.</p>
  
  <p>Here is the line :</p>
  
  <pre><code> &lt;a href="" ng-click="addFavorite(myfav.id);favorite=!favorite"&gt;
      &lt;i class="fa orange" ng-class="{'fa-star': (favorite || (fav==myfav.id)), 'fa-star-o': !favorite}"&gt;&lt;/i&gt;
   &lt;/a&gt;
  </code></pre>
  
  <p>I tried some different codes like this one : </p>
  
  <pre><code> ng-class="{'fa-star': favorite, 'fa-star': (fav==myfav.id), 'fa-star-o': !favorite}"
  </code></pre>
  
  <p>without any success.
  Can someone help me finding the good syntax ?</p>