If you're using the Vue Loader setup (which has <template></template>
tags in the files), you need to use this
to reference the $router, if you're doing so within the <script></script>
part of the file.
console.log('The id is: ' + this.$route.params.id);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With