ng-repeat中嵌套一個ng-repeat radio和checkbox怎麼取值? 程式碼如下:
<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>
怎麼在雙層ng-repeat情況取到input[radio]和input[checkbox]? ng-model該怎麼設定?