Answer the question
In order to leave comments, you need to log in
How to extend a component with extends in Vue?
Tried with arrays but doesn't work. Tell me how to properly extend the component.
name: "product-view",
extends: [BaseProductView, BaseBannerPromotion],
data() {
return {
isCopy: false
}
},
Answer the question
In order to leave comments, you need to log in
Extend only works with one parent component.
To extend a component with the functionality of multiple entities, use mixins/mixins .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question