I trying to bind a telephone number which comes from a Json object loaded from a server. What's my mistake?
<a ng-href="tel:{{card.phone}}"><i class="fa fa-phone redicon fa-2x"></i></a>
This is the data:
"phone": "+4199999999",
I trying to bind a telephone number which comes from a Json object loaded from a server. What's my mistake?
<a ng-href="tel:{{card.phone}}"><i class="fa fa-phone redicon fa-2x"></i></a>
This is the data:
"phone": "+4199999999",
No need for interpolation with angular directives (such as ng-href
):
<a ng-href="tel:card.phone"><i class="fa fa-phone redicon fa-2x"></i></a>
If Phone number is not being detected then you might want to check for following line in header part
<meta name="format-detection" content="telephone=no">
OR you can set
<meta name="format-detection" content="telephone=yes">
to get it working.
Regards.