I need a help with AngularJs (1.6), I need to change the css class of just one or more items already rendered by ng-repeat .
I have seen in some places that clicking the item you can send your $ index and thus change the class only of that element, which would help me, however I need this controller , without passing the $ index through the view.
I know what $ index needs to change, I just need to know how to change it after rendering without passing anything by the view.
Example, I have this and I want to change the class dynamically of the 3 (or 4, 5) item already rendered.
<ul ng-repeat="item in itens">
<li>{{item.item}}</li>
<li>{{item.alterarClasseDesseItem}}</li>
</ul>