When I make an API call, the response is returned.
https://i.sstatic.net/AsFzu.png from another perspective.
https://i.sstatic.net/T4vqa.png
I store the result of the API call in a variable called result = [];
.
To create a dropdown list, I use v-select with :items="result"
.
If I want the services.name
to be displayed as the text in the dropdown list and services._id
to be stored in a variable using v-model, how should I set the item-text
and item-value
? The services._id
will be used as the item-value
.
I'm having trouble figuring out how to handle these nested properties.