in Vue.JS by
Q:

▼ Show 1 Answer

0 votes
by

Mixins allow us to write pluggable and reusable functionalities for Vue components. If you have a set of component options such as lifecycle hooks, methods etc. that you wish to reuse across multiple components, you can write it as a mixin and simply reference it in the component. The contents of the mixin are then merged into the component. If you’re defining any lifecycle hooks in the mixin, then it would get execution precedence over the component’s own hooks.

Vue JS
Learn More with Madanswer

Related questions

0 votes
asked Apr 4, 2020 in Data Handling by amita rallin
  • #django-mixin
0 votes
asked Jan 9, 2020 in Vue.JS by GeorgeBell
0 votes
asked Jan 9, 2020 in Vue.JS by GeorgeBell
...