Answer the question
In order to leave comments, you need to log in
Is it possible to use mixin in different vue components?
Let's say I created a mixin.js file
module.exports = {
manage: {
data: function () {
return {
errorOnUpdate: false,
}
},
methods: {
update: function() {
//some code
if (error) {
this.errorOnUpdate = true;
}
}
}
},
};
/components
/form
/profile
/contacts
Answer the question
In order to leave comments, you need to log in
If an error occurs in one component, will it be visible in another?
If not, please tell me how...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question