Using the vue-router, I came across a problem, when a dynamic route, type
{ path: '/horario/:dia/:hora', component: Bar },
A problem occurs, I can not access the day and time values on the destination page, this is because it is a template, however, I need this information, I am using a template file .vue.
He is:
<template>
<div></div>
</template>
<script>
export default {
mounted() {
console.log(dia);
console.log(hora);
console.log('Component mounted.')
},
data(){
return {
}
}
}
</script>