I have html like
<ul>
<li>one</li>
<li>two</li>
<li>tree</li>
</ul>
now on ng-click of every 'li' element I want to add class active and remove from other 'li' elements. Also, if the same 'li' is clicked again then I want to remove class 'active'
ngRepeat?