I have this code:
<ul class="tab">
<li><a href="javascript:void(0)" class="tablinks" ng-class="{ active: categoria == 1 }" ng-click="cambiaCategoria(1)">Link 1</a></li>
<li><a href="javascript:void(0)" class="tablinks" ng-class="{ active: categoria == 2 }" ng-click="cambiaCategoria(2)">Link 2</a></li>
<li><a href="javascript:void(0)" class="tablinks" ng-class="{ active: categoria == 3 }" ng-click="cambiaCategoria(3)">Link 3</a></li>
</ul>
<div class="main_list cta tab-content" body-scroll="true" id="cta" z-infinite-scroll="loadEventi">
<div ng-repeat="(key, value) in giornieventi" ng-cloak>
</div>
</div>
This code is in the middle of the page. The problem is that when I click on one of link, the function "cambiaCategoria" changes the "giornieventi" variable (in the repeater) and the page scrolls to top. I want to not scroll the page to top. How can I do that?
Thanks.