Having just started learning Vue.js, I am facing a challenge in rendering the following array:
countries: ["US", "UK", "EU" ]
I want to display this array in a select menu:
<select>
<option disabled value="">Your Country</option>
<option v-for="(index, c) in countries" :key="index">{{ c }}</option>
</select>
In addition, I need to set UK
as the default selected item. However, instead of country codes, I want to display just cuntries
in the menu.
Any suggestions on how I can resolve this issue?