I am working on designing a section for an app that will feature three tabs, each with its own unique Font Awesome icon. Currently, I have set up the tab structure as shown below, but only one icon is displaying in the tab:
<div class="tab">
<ul class="nav nav-tabs" role="tablist">
<li v-for="(tab,index) in tabs" :class="{active : curentTab===index}"
@click="curentTab=index">
<a href="#">
<i class="fa fa-bullhorn" style="width:auto" aria-hidden="true"></i> {{tab}}
</a></li>
</ul>
</div>
Below is the snippet of the Vue application used to set up these tabs.
<script>
data() {
return {
curentTab:0,
tabs:['Tab1','Tab2 ','Tab3']
}
}
</script>
Any suggestions on how I can display different icons for each tab?
Thank you in advance!