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

Master Vue.js with Vue School Premium

$25 / month

Vue Router for Everyone

Get access to this course, 18 others, and future Vue.js courses!

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.