Button ng-click inside ion-item with href


#1

This a simple recreation of my problem…

As you can see , the button click on “doSomething” button also trigger the click event on ion-item…

How can i solve this ?


#2

Hi Rikka, I think best solution will be to use double click on list and click event on button.
here is code pen example http://codepen.io/anon/pen/gpzdGw


#3

Use $event.stopPropagation():

<button ng-click="doSomething(); $event.stopPropagation();">do Something</button>

#4

gmarzious , thanks for the solution , its work like charm :smile:


#5

Super solution (Y)


#6

Great! Thanks for the soluction!