inside view I have
<a ng-class="{'active' : check}" ng-click="doSomething()">1</a>
<a ng-class="{'active' : check}" ng-click="doSomething()">2</a>
$scope.doSomething= function () {
$scope.check = true;
}
I want to set css class to onclicked element only. Using this code I change on multiple elements. How to limit only to one element?