Passing ID through router-link in Vue.js

    By: Manu
    4 years ago

    Try this And later pass id to get a single page with id

    { path: '/blog/single/:id', component:singlepage}
    

    get value on a single page like this

    created() { 
         this.$route.params.id;
     }