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

Any idea how to use pathFor within v-for loop? #26

Open
andregoldstein opened this issue Dec 13, 2015 · 0 comments
Open

Any idea how to use pathFor within v-for loop? #26

andregoldstein opened this issue Dec 13, 2015 · 0 comments

Comments

@andregoldstein
Copy link

Hi guys,

I'm currently struggling to find a way of passing the _id property to my pathFor helper using Iron Router with Vue.

When not using Vue the pathFor tag would work without explicitly declaring the _id. eg:

href="{{pathFor 'adminClient'}}

However now we are using the v-for loop the _id is no longer automatically picked up. Perhaps because we use the v-for="person in people" syntax so Iron Router can't pick it up.

Has anyone found a way around this yet, other than creating the URL manually?

Thanks

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