我有两个单选按钮让我们说A和B,当我检查A出现勾选标记时,如果我检查B它没有出现第一次点击,但如果我再次重新点击它出现。问题是什么:
<ion-list>
<ion-radio ng-model="vm.recoverBy" ng-value="'GetID'">
A
</ion-radio>
<ion-radio ng-model="vm.recoverBy" ng-value="'GetPass'">
B
</ion-radio>
</ion-list>
答案 0 :(得分:0)
答案是:在两个离子电台项目中添加name =“giveItAName”:
<ion-radio ng-model="vm.recoverBy"
ng-value="'GetID'"
name="recover">
A
</ion-radio>
<ion-radio ng-model="vm.recoverBy"
ng-value="'GetPass'"
name="recover">
B
</ion-radio>
</ion-list>