Why extend the Vue.js constructor

Asked

Viewed 44 times

2

I’m studying Vue.js and I came across the method extend which in the documentation says it provides a subclass of the Vue’s base builder. I can understand that, but I couldn’t find a practical example of why I would do that. My doubts are:

  • What are the differences between defining a local component and using the Vue.extend?
  • In what situation would the use of Vue.extend be made public?
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.