title: How to checked radio button in IONIC?
body: <p>How to set checked/default radio button value in IONIC? </p>
  
  <p><strong>I have code like below:</strong></p>
  
  <pre><code>&lt;ul&gt;
      &lt;li ng-repeat="quest in Questions"&gt;
  
          {{quest.question}}
  
          &lt;div ng-repeat="choice in quest.jawaban" ng-init="answer[quest.no]='A'"&gt;
              &lt;input 
                type="radio"  
                ng-model="answer[quest.no]" 
                ng-value="'{{choice.pil}}~{{choice.jawaban}}'" 
                name="{{quest.no}}"&gt;
              {{choice.jawaban}}
          &lt;/div&gt;
          &lt;br&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <blockquote>
    <p>ng-init="answer[quest.no]='A'"</p>
  </blockquote>
  
  <p>I need replace 'A' to "selected" value from database simulate like below</p>
  
  <pre><code>$scope.Questions = [{"no":"1","qus_id":"AI1a","question":"Pilih buah kesukaan:","selected":"A","jawaban":[{"pil":"A","jawaban":"Pepaya"},{"pil":"B","jawaban":"Mangga"},{"pil":"C","jawaban":"Pisang"},{"pil":"D","jawaban":"Jambu"}]},{"no":"2","qus_id":"AI1b","question":"Warna Favorit:","selected":"B","jawaban":[{"pil":"A","jawaban":"Merah"},{"pil":"B","jawaban":"Kuning"},{"pil":"C","jawaban":"Hijau"},{"pil":"D","jawaban":"Biru"}]}];
    };
  </code></pre>
  
  <p>To set default/checked radio button.</p>
  
  <p>More details are available at <a href="http://play.ionic.io/app/6d698853ef09" rel="nofollow noreferrer">http://play.ionic.io/app/6d698853ef09</a></p>