Skip to content

Unique name for multiple instances  #5

@roarkmccolgan

Description

@roarkmccolgan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions