0๐
- Import your
song.vue
inindex.js
import Songs from '../views/Songs.vue'
- Check your
../views/Songs.vue
yourlocalhost.url/mainapp/songs/1
Where โ1โ is a parameter named โidโ (url like /song/:id), try with:
this.$route.params.id
Source:stackexchange.com