angular js ques:我有两个单选按钮和两个相应的 输入,所以我希望禁用切换这两个无线电 以及ng-repeat中的相应输入?
<spanng-repeat="x in names">
<input type="radio"> <input type="text">
<br>
<input type="radio"><input type="text">
</span>
答案 0 :(得分:0)
<span ng-repeat="x in names">
<input type="radio" ng-disabled="x === 'name 1'"><input type="text">
<br>
<input type="radio" ng-disabled="x === 'name 2'"><input type="text">
</span>