Skip to content

Passing attributes to view component #559

@yaquawa

Description

@yaquawa

What problem does this feature solve?

seems like vue-router can not passing attributes to the view component?

const routes = [
    {
        path: "/dashboard/profile",
        name: "DashboardProfile",
        component: <DashboardProfile foobar="false"/>, // <--- I want to get this available
    },
];

What does the proposed API look like?

const routes = [
    {
        path: "/dashboard/profile",
        name: "DashboardProfile",
        component: DashboardProfile,
        componentAttributes: { foobar: false },
    },
];

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