I'm struggling with a simple code snippet in Ionic 1. It basically shows a list of items that are clickable to navigate to a details page. However, I want to add functionality so that when clicking on the phone icon next to each item, it will initiate a call to the person associated with that item.
The issue I'm facing is that the link within the ng-href attribute for the phone icon is being ignored when the ui-sref attribute is present. If I remove the ui-sref attribute, the phone link works fine.
Can someone provide guidance on how to resolve this issue? I would appreciate if you could also explain why this conflict is happening. Below is the simplified version of the code:
<ion-item class="item-icon-right"
ng-repeat="e in search(text)"
ui-sref="page2({m:e.mat})">
<h2positive>{{e.name}}
<a ng-href="tel:+5521{{e.phone}}"
class="icon ion-iphone enable-pointer-events"
style="text-decoration: none;"></a>
</h2positive>
</ion-item>
I could separate the items to make it work, but it would disrupt the CSS formatting. My goal is to find a solution that allows me to keep everything intact and still have the e.phone link functional.