使用angularjs

时间:2017-07-26 07:06:08

标签: angularjs phonegap

我已经使用此代码使用angularjs在我的移动应用中发送短信。 <a ng-href={{'sms:'+data.mobile1}}><i class="material-icons">message</i></a>但它不起作用。有人能帮助我吗?

2 个答案:

答案 0 :(得分:2)

您必须按以下方式绑定到ng-href

ng-href="sms:{{data.mobile1}}"

答案 1 :(得分:1)

"sms:{{data.mobile1}}"

应在引号内。

更多信息:https://docs.angularjs.org/api/ng/directive/ngHref

相关问题