Skip to content

Display Country Only #23

Answered by Daniel-Ioannou
kewlfrogz asked this question in Q&A
Discussion options

You must be logged in to vote

Country Model have all the info you need for the selected country.

Here is some useful:

  • country.name : The country name in English || e.g: United Kingdom
  • country.countryCode : The country code, ISO (alpha-2) || e.g: GB
  • country.phoneCode : The country phone code || e.g: 44
  • country.displayname : country name (country code) [phone code] || e.g: United Kingdom (GB) [+44]
  • country.displayNameNoE164Cc : country name (country code) || e.g: United Kingdom (GB)

If you want only the country name use country.name or if you want the country name and country code use country.displayNameNoE164Cc

@kewlfrogz Thanks for the question. If you have any additional questions or suggestions please feel free to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Daniel-Ioannou
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5 on March 20, 2021 21:26.