Within an "li" element, there is a button that triggers a request upon clicking. However, there is another request triggered when the entire "li" element is clicked.
<li style="cursor: pointer; padding-bottom: 2px;" class="list-group-item" ng-class="{'active': $index === selectedIndex}" ng-click="showQuery(segname.id, $index, segname)" ng-repeat="segname in segmentsCreatedName">
<span style="padding: 10px 15px; display: inline-block;">{{segname.name}}</span>
<a class="btn btn-default pull-right" href="/apps/{{currApp}}/messages/automate/segments/{{segname.id}}/write">AutoMessage</a>
</li>
I am looking for a way to separate the button from the <li>
so that only one request is made when the button is clicked. Is there a solution for this?