change filtred class of ng-repeat by $index from controller
<p>This is my ng-repeat:</p>

<pre><code>&lt;div class="{{event.who_seen_it | newEvent}}" ng-repeat="event in eventList" ng-click="openEvet(event.title,$index)"&gt;
    &lt;h3 class="event-title"&gt;{{event.title}}&lt;/h3&gt;
&lt;/div&gt;
</code></pre>

<p>I use <code>{{event.who_seen_it | newEvent}}</code> for adding class to each repeated element. I want to changing result of this filter <code>newEvent</code> or adding new class to current element or remove this filter <code>{{event.who_seen_it | newEvent}}</code> by click on each repeated element. </p>

<p>We can use the <code>$index</code> and I want to do it from the controller. How can I do that?</p>