Vuejs: is it possible to specify Vue instances in vue-devtools?

I am implementing a web page with multiple Vue instances.

I have a simple question: can I name and display them under my name using vue-devtools?

In fact, my console displays such instances, and they are difficult to distinguish from them:

vue-devtools

+8
source share
1 answer

By “multiple instances of Vue,” if you mean that you have multiple instances new Vue({}), you can give each one its own name as:

new Vue({
  name: 'Samayo'
})

And now <Root>in your devtools it will be replaced by<Samayo>

+16
source

All Articles