I have configured a route as shown below:
{
path: 'fit-details',
name: 'fit-details',
component: Fitment,
props: true
},
I am passing props via the route using data from the state:
this.$router.push({ path: 'fit-details', query: {
year: this.query.year,
make: this.query.make,
model: this.query.model
}
})
After passing the route, I can confirm it is properly defined like so:
www.placeholder.com?year=2008&make=Acura&model=MDX
Upon receiving the component, the props are declared as follows:
export default {
props: ['year', 'make', 'model'],
},
However, I am unable to access this data within the component. Any assistance would be greatly appreciated as I'm not very experienced with Vue router concepts.