Is there a way to properly link to another page using vue 2? I have a bootstrap table with rows that need to navigate to different pages. How can this be achieved? If I try to implement it like this:
<tr @click="url(forum)">data</tr>
url(forum) {
window.location.href = '/berichten/' + forum.slug;
}
I am unable to include another @click
in the same row, as shown below:
<td @click="destroy(forum)">forum</td>
NOTE: I do not use Vue.js router.
Any assistance on this issue would be greatly appreciated.
--EDIT--
Upon clicking on the
<td @click="destroy(forum)">
, it redirects to the url(forum);
function instead of executing my destroy(forum)
function.