Skip to content

Router-link by name ":to-name" #2998

@de-don

Description

@de-don

What problem does this feature solve?

It would be convenient to have a shortcode for routing by name of the route. This will save the user from constantly passing an object with only one "name" field

What does the proposed API look like?

I propose to create a shortcut:

<router-link to-name="home"> Home page </router-link>

that will be equal to

<router-link :to="{name: 'home'}"> Home page </router-link>

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