Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique name for multiple instances #5

Open
roarkmccolgan opened this issue Jul 12, 2016 · 0 comments
Open

Unique name for multiple instances #5

roarkmccolgan opened this issue Jul 12, 2016 · 0 comments

Comments

@roarkmccolgan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant