I have listed a number of <div>s using ng-repeat.
When I click on one <div> (div1) background color becomes blue, and if I click on other div (div2) - div1-background-color becomes white as it was at the beginning and div2-background-color becomes blue.
Here is my html:
<div ng-repeat="folder in vm.folders track by $index" >
<span>{{folder.name}}</span>
</div>