I searched a lot but could not find.
Here is my html
<li ng-repeat="tmp in list" ng-class="{active: $last}">
    <a href="#{{tmp.url}}">{{tmp.text}}</a>
</li>
It is working fine. But what I want is for the last item in ng-repeat, I don't want to add the <a> tag. I want in the following way
<li ng-repeat="tmp in list" class="active">
    {{tmp.text}}
</li>
For the class="active" I added using ng-class="{active: $last}", But for this without <a> tag, how to add?
 
     
     
    