Recently delving into Vue, attempting to translate previous JS + JQuery code into Vue
Here is the list I'm working with:
<ul id="progressbar">
<li class="active">integration Ip's</li>
<li>Traffic Details</li>
<li>API Creds</li>
</ul>
Whenever the next/previous button is clicked, the "active" class shifts to another list element. For example:
isNextClicked() {
var nextStage = this.currentPage;
this.currentPage++;
console.log("CurrentPage =>", this.currentPage);
$("#progressbar li").eq($("fieldset").index(nextStage)).addClass("active"); //Converting this to vue
return this.currentPage;
},
How can I convert this line of code to Vue syntax?
Photo of the progress bar: