动态 HREF 呼叫标签离子 3 应用程序



我正在尝试向我的 Ionic 3 应用程序添加 href 调用操作。我已将电话号码存储在绑定{{item.phone}}

我需要将其添加到 href 标签中才能打开手机本机应用程序。我不确定如何将其绑定到 href 标签

<ion-col col-10 href="......">{{item.phone}}</ion-col>

请协助

不确定你想做什么。

但是你可以像这样绑定到动态href

<ion-col col-10 [href]="item.phone">{{item.phone}}</ion-col>

<ion-col col-10 href={{item.phone}}>{{item.phone}}</ion-col>

最新更新