I am attempting to use the routerLink
to redirect to a different tab within another component.
For instance, in the Dashboard component:
<a class="hvr-icon-forward" [routerLink]="['/app/Snow']">
<span class="setup-profile-button">Show all enquiries</span>
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" class="hvr-icon"><path _ngcontent-wtu-c48="" d="M-4.43075e-07 10.1364L-3.4373e-07 7.86364L13.6364 7.86364L7.38636 1.61364L9 -3.93402e-07L18 9L9 18L7.38636 16.3864L13.6364 10.1364L-4.43075e-07 10.1364Z" fill="white"></path></svg>
</a>
The Enquiries component consists of two tabs: New Enquiries & History tabs. My goal is to redirect to the History tab in the Enquiries component when clicking on the "show all enquiries" button from the Dashboard component.
In Enquiries.component.html:
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active" id="register">
<a href="#new-tab" aria-controls="register" role="tab" data-toggle="tab" (click)="SelectForm('NewForm')">{{"New"|TextByLanguage:welcomePopup:"SUP2146":selectedLanguageCode}}</a>
</li>
<li role="presentation" id="regionInfo">
<a href="#history-tab" aria-controls="regionInfo" role="tab" data-toggle="tab" (click)="SelectForm('ViewRequests')">{{"History"|TextByLanguage:welcomePopup:"SUP2147":selectedLanguageCode}}</a>
</li>
</ul>
<div role="tabpanel" class="tab-pane active" id="new-tab">
...
</div>
<div role="tabpanel" class="tab-pane" id="history-tab">
...
</div>
I have attempted the following code, but it does not redirect to the specific tab within the component.
<a class="hvr-icon-forward" [routerLink]="['/app/Snow?history-tab']">
</a>