I am trying to dynamically change the class name when a showPending function called . I don't know how to achieve that through angular js.
<li data-match-route="pending" ng-class='menuactive'><a href="javascript:void(0)" ng-click="showPending()" >Pending</a></li>