Skip to content

Feature: use v-on:click with v-link  #390

Closed
@weotch

Description

@weotch

This doesn't appear to work:

<a v-link='{name: "home"}' v-on:click='onClick'>Home</a>

I think it's this e.preventDefault(). I get why that's there, but can you think of some way we can also handle these clicks from the Component? Maybe a callback could be specified in v-link, like:

<a v-link='{name: "home"}, onClick'>Home</a>
<a v-link='{name: "home", click: onClick}'>Home</a>

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