Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Ion-radio with checked="true" does not work?

$
0
0

You shouldn't need those (click) events (unless that function is doing something other than changing the value of status), we have a sample radio group in our tests that looks similar without the click events:

  <ion-list radio-group [(ngModel)]="relationship">
    <ion-radio value="friends">Friends</ion-radio>
    <ion-radio value="enemies">Enemies</ion-radio>
  </ion-list>

  <div padding>
    <code><b>relationship:</b> {{relationship}}</code>
  </div>

For the initial post, @icarus_31 do you have it wrapped in a <ion-list radio-group> with a ngModel?

Either way, I was able to reproduce the problem. Just want as many details as possible. :smile:

Created an issue for this here: https://github.com/driftyco/ionic2/issues/829


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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