Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

How to use ion-radio?

$
0
0

@RaulAndrade wrote:

I have the next code and I'm trying to get the value of my ion-radio, but I can't.

How I can get the value in the ts (typescript).

If you need more info ask me.

<div class="Pregunta" >
    <p>Question 1</p>
    <ion-list radio-group  [(ngModel)]="val">
        <ion-item>
          <ion-label color='secondary'>Bueno</ion-label>
          <ion-radio value="bueno" color='secondary'></ion-radio>
        </ion-item>
        <ion-item>
          <ion-label color='amarillo'>Regular</ion-label>
          <ion-radio value="regular" color='amarillo'></ion-radio>
        </ion-item>
        <ion-item>
          <ion-label color='danger'>Malo</ion-label>
          <ion-radio value="malo" color="danger"></ion-radio>
        </ion-item>
    </ion-list>
</div>

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



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