How to get the values of an ng-repeat radio and checkbox nested in ng-repeat? The code is as follows:
<ul class="options_box" >
<li ng-repeat="item in ques.ques_items">
<p 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>
</p>
<p 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>
</p>
</li>
</ul>
How to get input[radio] and input[checkbox] in double-layer ng-repeat? How should ng-model be set?
I’ve been doing this recently too. If you have any problem with the value, please explain it in detail. You can also bind the model