title: angularjs pass index through directive
body: <p>I need help with this code.</p>
  
  <pre><code>&lt;ul ng-init="round = 'round'"&gt;
    &lt;li ng-repeat="mesa in mesas" ng-click="selected($index)"&gt;
      &lt;div id="{{round}}"&gt;&amp;nbsp;&lt;/div&gt;
      MESA {{mesa}}
     &lt;/li&gt;
   &lt;/ul&gt;
  
  
  $scope.selected = function ($index){
      $scope.index.round = 'round1';
    }
  </code></pre>
  
  <p>I need that only the li that is being clicked to change the css name, but instead it change all of the li's that I have listed.</p>