vue js control the website url code example
Example 1: vue # in url
// To remove the # from url
// go in to router, index.js and change -->
const router = new VueRouter({
routes
})
to const router = new VueRouter({
routes,
mode: 'history'
})
Example 2: how to use api url in vue
<a :href="post.url" target="_blank"><img :src="post.image_url"></a>