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

Handle radio values

$
0
0

I came up with the following:

in html:
<ion-list radio-group [(ngModel)]="actor">

in js

   handleResult() {
        console.log("AgencyPage: HandleResults() - actor=" + this.actor);
        if(this.actor == 'self'){
            // push agent-details page
        }
        else if(this.actor == 'agent'){
            // push client-details page
        }
    }

This turned out much easier than I thought it would be. Is this the right way of going about it?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



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