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

Vue Router for Everyone

How to pass Vue Router params as props to components

In this lesson, we’ll do some refactoring to improve our travel app. First we'll refactor our route params from using an ID to using a slug. At the end of the lesson, we learn how to pass route params as props to our route components.

We also learn about the history mode of Vue router, which will remove the hash symbol in our URLs.