我有一个包含项目的列表,每个项目都有一个切换和href链接,问题是当点击切换href链接触发然后我移动到第二页,我如何解决这个问题:
<ion-list ng-repeat="(key,value) in checkload | groupBy:'Niveau'">
<div class="item item-divider" >{{key}}</div>
<ion-item href="/#/detailCheckArrivee/{{checkarrivee.ficheDeMission.id}}/{{var.id}}" on-swipe-left="warn(checkarrivee.ficheDeMission.id,var.id)" ng-repeat="var in value" >
<ion-toggle class="noToggleBorder" ng-class="{item:checkarrivee.ficheDeMission==undefined,'item':checkarrivee.ficheDeMission==undefined}" ng-model='checkarrivee.boo[var.id]' ng-click="checkarrivee.isMissionSelected(var.id,checkarrivee.ficheDeMission.id)" toggle-class="toggle-positive">{{var.designation}}</ion-toggle>
<button class="button button-clear icon ion-star button-assertive"
ng-click="toggleStar(var)" ng-show="var.star">
</button>
<ion-option-button class="button-{{option}}">
<i class="icon {{type}}"></i>
</ion-option-button>
</ion-item>
</ion-list>