I have an url:
http://localhost:8080/Currency?currency=RMB
I want to get the currency param which is RMB
In:
created(){
this.currencyParam = this.$route.query.currency;
console.log(curr: ${this.currencyParam});
}
and I can get the curr: RMB in F12 - console but in F12 -Vue I get currency:undefined
In my template:
<template v-else>
<gateway
:currency="this.$route.query.currency"
/>
</template>
I get an error:
Error in render: "TypeError: Cannot read property '$route' of undefined found in and in
F12 -VueI still getcurrency:undefined
thisin templates - just$route...