vue-autocomplete
vue-autocomplete copied to clipboard
Unique name for multiple instances
Hi There,
When using in a loop:
v-for="(optionKey, option) in myOptions")
I am unable to use the current "optionKey" in naming each instance:
<vue-autocomplete
name="material_{{optionKey}}"
param="name"
url="/api/materials"
anchor="name"
label="Material"
limit="5"
model="material"
class="form-control input-sm"
</vue-autocomplete>
same problem for binding to existing data object:
model="{{option}}"
It uses it as a string