The Vue.js 2 Master Class
Plans from $25/month

This lesson is for members. Join us?

Subscribe now and get immediate access to this course, 30 more and all future Vue.js courses!

🚧 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.