Vue.js 3 Options API Masterclass
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!

Sharing Components Between Multiple Pages

In this lesson, we'll learn how to share one Page component between two routes and show different components on the page based on which route is active.

The goal is to use the Profile component to show the UserProfileCard as well as being able to switch to an editor component when the user wants to update his profile.