Answer the question
In order to leave comments, you need to log in
How to get link attribute in vue?
Noob question but got stuck while learning vue. The task is simple - get the href of the clicked link. The following code is written:
<a href="{{ $paginator->nextPageUrl() }}" @click.prevent="toPage(this)"></a>
methods: {
toPage: function (a) {
console.log(a);
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question