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

How to display value base on the key from a array list

$
0
0

@shmu80 wrote:

I have an array list such as

[
      {
        code: 'M',
        name: 'Male'
      },
      {
        code: 'F',
        name: 'Female'
      }
    ]

How can I display a list of people information in view if the gender is M, it will display as Male, else if F, it displays as Female?

Posts: 1

Participants: 1

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>