Skip to content

v-link no longer recognizing $index inside v-for #343

@tylersnyder

Description

@tylersnyder

The v-link component is no longer recognizing the $index variable when nested inside of a v-for. This worked previously, confirmed in [email protected] and 0.7.8. As of [email protected] this is no longer working.

The resulting URL ends up looking like /:index rather than /0

Fiddle

<li class="step" v-for="driver in drivers" track-by="$index" v-link-active>
  <a v-link="{ name: 'editDriver', params: { index: $index }}">
    {{driver.firstName}} {{driver.lastName}}
  </a>
</li>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions