The Vue.js Master Class
Sponsored by Storyblok
Plans from $25/month

This lesson is for members. Join us?

Subscribe now to get instant access to this course, plus a full library of Vue.js courses tailored to the plan you choose.

🚧 NOTICE: You are watching a Vue.js 2 lesson

Share Logic Between Components with Mixins

Next up in our quest to create a better user experience when fetching async data, is to decide on an application structure that's reusable on multiple vue components and maintainable.

As always, we have many options, but we're going with mixins this time. Mixins are a great fit since they allow us to extract component options (like methods and data) and reuse them when needed.