Learn Vue JS course Learn Javascript and Vue JS Learn VueJS course Learn VueJS Tutorial

Vue.js 3 Options API Masterclass

Sharing Components Between Multiple Pages thumbnail image

Get access to the most comprehensive Vue.js video library in the world. Over 300 video lessons including the newest Vue 3 features.

Sharing Components Between Multiple Pages

🚧 PLEASE NOTE: This masterclass is built with the Options API

The Composition API Masterclass is coming soon!

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.