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?
Hi guys,
I'm currently struggling to find a way of passing the
_id
property to mypathFor
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 thev-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