I'm having trouble passing parameters to another route in Nativescript
. Every time I try, it shows up as undefined
. I am using the nativescript-vue-navigator.
On my current screen, I have this function call:
this.$navigator.navigate('/map', { props: { name: 'Rafael Augusto'} } )
And on my map screen, I am attempting to access it like so:
export default {
props: ['name'],
mounted(){
console.log(this.name)
}
}