<span class="row top-bar-left align-items-center" style="width: 80%; float:left">
<div tabindex="1" class="link tab" routerLink="details" routerLinkActive="active"
[queryParams]="activatedRoute.queryParams | async">
<p>JDA-WMS Details</p>
</div>
<div tabindex="2" class="link tab" routerLink="summary" routerLinkActive="active"
[queryParams]="activatedRoute.queryParams | async">
<p>JDA-WMS Summary</p>
</div>
<div tabindex="3" class="link tab" routerLink="shortage" routerLinkActive="active"
[queryParams]="activatedRoute.queryParams | async">
<p>Shortage</p>
</div>
</span>
Using the above code, I am implementing three DIVs as tabs. Upon clicking one of them, the background color should change. Subsequently, clicking another tab should trigger a color change and reset the initial tab's background color to its original state.