Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49177

How to create and retrieve ng-model value inside ng-repeat in an Ionic view?

$
0
0

@n0s13 wrote:

this is my IONIC view

  <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">&nbsp;</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>

How to get radio button value in controller..?

Thank you

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>