create a array with key value vue js code example Example: v-for only getting one first value vuejs {{ location.from }} - {{ location.to }}