This should be simple.
I’m just iterating over an array, and need to access the item data to build the URL.
This is what I have tried with no success:
<f7-list-item v-for="(stop, index) in $root.stops" :title="stop.name" link="/stop/{{index}}/" :data-id="index"></f7-list-item>
<f7-list-item v-for="(stop, index) in $root.stops" :title="stop.name" :link="/stop/index/" :data-id="index"></f7-list-item>
<f7-list-item v-for="(stop, index) in $root.stops" :title="stop.name" :link="/stop/stop.id/" :data-id="index"></f7-list-item>
<f7-list-item v-for="(stop, index) in $root.stops" :title="stop.name" link="/stop/{{stop.id}}/" :data-id="index"></f7-list-item>
What am I doing wrong? Any help would greatly be appreciated. Thanks!