ng-repeat中嵌套一个ng-repeat radio和checkbox怎么取值? 代码如下:<ul class="options_box" >
<li ng-repeat="item in ques.ques_items">
<div ng-repeat="nums in item.ques_item_options" ng-if="item.ques_item_type==1">
<input type="radio" class="magic-radio " ng-model="nums.option_id" >
<label for="{{nums.option_id}}">22222</label>
</div>
<div ng-repeat="nums in item.ques_item_options" ng-if="item.ques_item_type==2">
<input type="checkbox" " class="magic-radio " ng-model="nums.option_id" >
<label for="{{nums.option_id}}">22222</label>
</div>
</li>怎么在双层ng-repeat情况取到input[radio]和input[checkbox]? ng-model应该怎么设置?
添加回答
举报
0/150
提交
取消