title: Angular - check if class is odd or even on ng-click
body: <p>I have the following ng-repeat that gives an element a className based on whether it is even or odd...</p>
  
  <pre><code>&lt;div ng-click="displayHTML(content)" ng-class-odd="'title'" ng-class-even="'html'" ng-repeat="content in name.name"&gt;
      {{content}}
  &lt;/div&gt;
  </code></pre>
  
  <p>On <code>ng-click</code> I am calling <code>displayHTML()</code> and passing a parameter <code>content</code> so that only that particular div that is clicked calls the function. </p>
  
  <p>However on ng-click I'm attempting to see whether the clicked element is <code>ng-class-odd</code> or <code>ng-class-even</code> and I want the function to only be called if the element is <code>ng-class-odd</code>.</p>
  
  <p>But I do not know an easy way to do this. Is there an easy "angular" way of doing it. If not, what should I put here...</p>
  
  <pre><code>$scope.displayHTML = function(obj){
  ////    
  
  }
  </code></pre>