这是我的IONIC视图
<div class="divTable" ng-repeat="quest in Questions" >
<div class="divTableBody">
<div class="divTableRow">
<div class="divTableCell" ><strong>{{quest.no}}.</strong></div>
<div class="divTableCell" style="width:100%"><strong>{{quest.question}}</strong></div>
</div>
<div class="divTableRow" ng-repeat="choice in quest.jawaban" >
<div class="divTableCell"> </div>
<div class="divTableCell"><input type="radio" ng-value="'{{choice.jawaban}}'" name="{{quest.no}}" id="{{choice.jawaban}}"><label for="{{choice.jawaban}}">{{choice.jawaban}}</label></div>
</div>
<br>
</div>
</div>
如何在控制器中获取单选按钮值??
谢谢
答案 0 :(得分:0)
怎么样:
{{1}}
在控制器中:
{{1}}
然后您可以将$ scope.data用于您的想法或观察对它的更改。