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

How to pass radio button value to another page

$
0
0

@NthabyMogoboya wrote:

<ion-radio-group (ionChange)="radioChangeHandler($event)">

  <ion-list-header>

    <ion-label color="">

      Flavours

    </ion-label>

  </ion-list-header>

  <ion-item>

    <ion-label color="medium">Plain</ion-label>

    <ion-radio value="plain"></ion-radio>

  </ion-item>

  <ion-item>

    <ion-label color="success">Lemon&Herb</ion-label>

    <ion-radio value="Lemon&Herb"></ion-radio>

  </ion-item>

  <ion-item>

    <ion-label color="warning">Mild</ion-label>

    <ion-radio value="Hild"></ion-radio>

  </ion-item>

  <ion-item>

    <ion-label color="danger">Hot</ion-label>

    <ion-radio value="Hot"></ion-radio>

  </ion-item>

</ion-radio-group>

// .ts file

flavor: string;

radioChangeHandler(event: any){

this.flavor = event.target.value;

console.log(event.target.value);

}

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70443

Trending Articles



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