0👍
In javascript you can use router.push
for that, with the hash
attribute:
router.push({ name: 'distribution', hash: '#contact' });
In your template you can use the routerLink
component:
<router-link :to="{ name: 'distribution', hash: '#contact' }">Contact</router-link>
- [Vuejs]-Leaflet side by side always displays layers on the right
- [Vuejs]-Error: The requested module 'vue' does not provide an export named 'default'
Source:stackexchange.com