Ion-option-button


#1

I have a list with option buttons. When i swipe right and tap on Forget button, it triggers forget() method as well as openModal() method of parent. I want to trigger only forget() method. Any help would be appreciated…!!!

<ion-item ng-repeat="user in users" type="item" ng-click="openModal($index)" item="user">
                 <img class="img" ng-src="{{user.profilePic}}">
                  <h2>{{user.username}}</h2>
                  <ion-option-button ng-click="forget(user)" class="button-assertive">Forget</ion-option-button>
                        </ion-item>

#2

Have a look at this github issue 550. According to the comments you can either use $event.stopPropagation(); or the directive from the issue (not sure if it is still valid, never used it…)