vuejs / devtools-v6

⚙️ Browser devtools extension for debugging Vue.js applications.
https://devtools-v6.vuejs.org/
MIT License
24.69k stars 4.14k forks source link

`$vm` is undocumented #2028

Open sersorrel opened 1 year ago

sersorrel commented 1 year ago

What problem does this feature solve?

$vm (and $vm0. $vm1, etc.) should be documented in some way, either in the documentation somewhere or (preferably) by showing them in the devtools window like they apparently used to be marked, e.g. https://github.com/vuejs/devtools/issues/182#issuecomment-263177778:

`<App> == $vm0`

I spent several minutes trying to work out how to access a component from the JS console, only eventually figuring out from old issues on this repository that I can select a component and refer to it as $vm.