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

Base Components

When you want to use certain parts of your code in many different places, you should extract it to a component. If this component applies app-specific styling and conventions it is called a base component.

In this lesson, we’ll extract the human-friendly date filters we just created to a base component.