[Vuejs]-Combine multiple data in .vue component

4👍

You can use JavaScript’s built-in Bracket Notation Property Accessor to accomplish this, like so:

<el-option
    v-for="country in countries"
    :key="country.name"
    :value="country.name"
    :label="country.translations[locale]">
</el-option>

Leave a comment