1👍
Vue can’t detect when you click on an element until you assign an event listener to it.
Learn more about events here: https://v2.vuejs.org/v2/guide/events.html
To instruct vue-router to go to a next page, you can either use a router-link
or router.push(href)
.
Learn more about navigating using vue-router here: https://router.vuejs.org/guide/essentials/navigation.html
In your case, you want to execute the $router.push
function upon click
event.
So here is your code:
<v-list-item-title @click="$router.push('/pass')"> ... </v-list-item-title>
Hope it helped
Source:stackexchange.com