0👍
To call a method on click you do it like this:
<i @click="test"></i>
to call a link registered in vue-router
you do it like
<router-link :to="{ path: 'home' }"><i @click="test"></i></router-link>
- [Vuejs]-Accessing newquestion variable further down in function
- [Vuejs]-Vue2 how to change the main data component from another single file component?
Source:stackexchange.com