Having trouble passing a prop in nativescript this.$navigateTo()
<template>
<stack-layout v-for="meme in memes">
<Image :src="meme.url" @tap="goToEditPage(meme.url)"/>
</stack-layout>
</template>
<script>
import EditMeme from './EditMeme'
export default {
computed: {
memes(){
return this.$store.getters.memes
}
},
components: {
EditMeme
},
methods: {
goToEditPage(ImageUrl) {
this.$navigateTo(EditMeme, { context: { propsData: { Image: ImageUrl } }});
}
}
}
</script>
I tried passing props this way
still, In the child component I get an undefined , this is the child component :
export default {
props: ['Image'],
methods: {
onButtonTap() {
console.log(this.props);
}
}}
Any ideas? I'm new with vue.js so there is a good chance I'm missing something basic in my code