Skip to content

"Store as global variable" button for components #613

@Kelin2025

Description

@Kelin2025

What problem does this feature solve?

It's a nice feature to edit data right in vue-devtools
But I also want to test components in console by calling their methods etc during development
For now, I just write window.a = this in created hook
It would be nice to have "Store as global variable" button in components section that will just put the component instance in some global variable

What does the proposed API look like?

Just a button near "Scroll to view" (here) that will copy component instance to a global variable

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