Skip to content

vue-router without router-link #2300

@pradeepachan

Description

@pradeepachan

What problem does this feature solve?

Can I use vue-router without using router-link tag? The use case is, my HTML is created by designers, using standard components like A HREF="/my-router-link" tag - so that it is visible as regular HTML. Later, I enable dynamic nature by attaching routing script by mapping /my-router-link to a custom function.

For this purpose, I was forced to move to page.js (https://visionmedia.github.io/page.js/) - as a barebone router - just for the above functionality. But it will be ideal, if vue-router can support this natively, and I could switch back to vue-router.

What does the proposed API look like?

route('/user/:id', user.load, user.show)

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