title: How to put multiple condition in ng-class
body: <p>suppose i am showing product information. i want if price less than 50 then item color should be red. if price more than 50 then item color should be yellow and if price more than (50+(50*60/100)) then item color should be green. now tell me how could i achieve it best way. guide me with best approach to complete it.</p>
  
  <p>this way i tried but i came to know there will be more iteration due to dirty check when work with ng-repeat. see my code and tell me how could i put multiple condition in ng-class to set class dynamically.</p>
  
  <pre><code>&lt;div ng-app="myApp"&gt;
    &lt;ul ng-controller="MyController"&gt;
      &lt;li ng-class="setColor(item.price)" ng-repeat="item in products"&gt;{{item.name}} &amp;mdash; {{item.price}}&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  
  
  var myApp = angular.module('myApp', []);
  
  myApp.controller('MyController', function MyController($scope) {
  
  $scope.setColor = function(price) {
  
       alert(price);
  }   
  
    $scope.products = [
      {
          'name' : 'Xbox',
          'clearance' : true,
          'price' : 30.99,
      },
      {
          'name' : 'Xbox 360',
          'clearance' : false,
          'salesStatus' : 'old',
          'price' : 99.99,
      },
      {
          'name' : 'Xbox One',
          'salesStatus' : 'new',
          'price' : 50,
      },
      {
          'name' : 'PS2',
          'clearance' : true,
          'price' : 79.99,
      },
      {
          'name' : 'PS3',
          'salesStatus' : 'old',
          'price' : 99.99,
      },
      {
          'name' : 'PS4',
          'salesStatus' : 'new',
          'price' : 20.99,
      }
      ]
  })
  </code></pre>
  
  <p>tell me without calling function from ng-class how could i place multiple if else condition in ng-class?</p>
  
  <pre><code>if price &gt; 50
     return "css-class-yello"
  else if price &lt; 50
     return "css-class-red"
  else if price &gt; (50+(50*60/100))
     return "css-class-green"
  </code></pre>
  
  <p>if possible please guide me with code. thanks</p>