This code dynamically displays a list of li's with images and text.
<ul class="presale">
<li ng-repeat="(k,v) in value | groupBy : 'presales_name'" ng-click="showData(k.split(' ').join('-').replace('(','').replace(')',''), $index)">
<div class="imgDiv">
<img src="/images/phones/sub-family/xs/{{k.split(' ').join('-').replace('(','').replace(')','-').toLowerCase()}}.png">
</div>
<p><a>{{k}}</a></p>
</li>
</ul>
$scope.showData = function (item, index) {
}
I am looking to enhance this code by adding functionality that allows the user to select a li item, which will change its background-color, while also removing the background-color from any previously selected li items.