为ng-repeat单选按钮选择了错误的单选按钮 [英] Incorrect radio button getting selected for ng-repeat radio buttons
本文介绍了为ng-repeat单选按钮选择了错误的单选按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个使用ng-repeat的单选按钮列表. 当我最初加载页面并在最后一个单选按钮上进行选择时,其侧面的按钮将被选中. 这仅是第一次发生,也就是说,如果我第二次单击最后一个按钮,则选择正确.
I have a list of radio buttons using ng-repeat. When I initially load the page and select on the last radio button, the button on it's side gets selected. This only happens for the first time, i.e. if I click on the last button a second time, it is selected correctly.
<input type="radio" name="rb" value="{{rbCollection.name}}" data-ng-click="open(name)" data-ng-model="Ctrl.selection">
推荐答案
查看全文