Skip to content

Missing param when rendering router-link #986

@rlambertsen

Description

@rlambertsen

When trying to recreate another issue I seem to be having I came across a new one that is kind of related to my original problem. I have a code pen ready to view here

The problem I seem to be having is that when I change the prop TO to v-bind:TO to add some params I get an error that says

[Vue warn] Error when rendering component :
[vue-router] missing param for named route "joke": Expected "number" to be defined

Yet when I remove the colon, not binding the TO prop it loads the data. I hope I am getting my point across. Maybe if someone can explain what I am doing wrong here, it might fix my other problem? Thanks!!!

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