angular.js - Why can't button be placed in the label label of angular ionic?
天蓬老师
天蓬老师 2017-05-15 16:58:05
0
2
550
<label class="item item-input">
    <button class="button smsbutton" ng-click="getPhoneSms()" ng-show="getSms">获取验证码</button>
</label>

The ng-click event of such a button is invalid

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
Peter_Zhu

ng-click fails, you need to check if there is something wrong with your controller. Is the above code in the controller? The failure of ng-click() has nothing to do with whether it is placed in LABEL

我想大声告诉你

Post the controller code and take a look

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template