I have 4 tabs, on click of each tab, if it is active then it is highlighted. But to one tab i had used (click)
event, so i am unable to make that tab active. So can anyone help me how can i make that active on click of that function.
HTML:
<a id="AminManage" class="list-group-item justify-content-between" (click)="patientinfo()" routerLinkActive="active">
<span>
<i class="icon-home"></i>Patient Information</span>
</a>
I also used [routerLink]="['/admin/patient-info/', Cookie.get('AdminPatientId')]"
but didnt work.
Here this is not supporting routerLinkActive="active"
so is there anyway to make it work. Please help.
Ts:
patientinfo(){
this.router.navigate(['/admin/patient-info', Cookie.get('AdminPatientId')])
}