I'm creating a form using Vuetify with a dropdown option, however I want to get the dropdown choices from a table in my DB instead of hardcoding the options in.
It seems to be working, meaning that every new entry into the DB table increases the # of options I have in the dropdown. However, all it displays is [object Object]. How can I actually get it to display the actual value?
The dropdown component inside the template tag:
<v-card>
<v-container>
<v-col class="d-flex" cols="12">
<v-select
:items="allDropdownTypes"
label="Project Type"
>
</v-select>
</v-col>
</v-container>
</v-card>
The prop:
props: {
allDropdownTypes: Array
},
My blade template:
<div>
<project-form-v2
:all-dropdown-types="{{ $allDropdownTypes }}"
>
</project-form>
</div>
