I have a page with a sign in form. This form is separated with two tabs. In the footer, I have a link that should direct the user at this page, this form but at the second tab. What have I tried?
I have tried to access #id
but I figure out the because the form is mat-tab and ng-template mat-tab-label
didn't know this syntax. So the solution has to be some mat tab menu method. I can create a method like that cause they are a lot of examples in the net. But I don't get how will I call this method when I click the link. This is my code at HTML.
<div class="reg-form-wrapper">
<div class="form-viewer">
<mat-tab-group>
<mat-tab style="height:500px;">
<ng-template mat-tab-label>
<div class="loginHead" class="mat-body-2">Customer login</div>
<div id="customerLogin"> I want to buy an app</div>
</ng-template>
<form>
<app-mutual-login [userRole]='"customer"'>
</app-mutual-login>
<div class="signup-linkcustomer">
Don't have an account?
<a routerLink="/auth/register">
Sign up
</a>
</div>
<div class="separator">
<h2 class="options"><span class="mat-body-1">or</span></h2>
</div>
<div class="button-container">
<button mat-raised-button color="primary" id="linkdin-btn" type="submit">LinkedIn</button>
<button mat-raised-button color="primary" id="google-btn" routerLink="/auth/login">google</button>
</div>
</form>
</mat-tab>
<mat-tab>
<ng-template mat-tab-label>
<div class="loginHead" id="loginPartner" class="mat-body-2">Partner login</div>
<div id="customerLogin"> I want to sell an app</div>
</ng-template>
<form>
<app-mutual-login [userRole]='"partner"'>
</app-mutual-login>
<div class="signup-linkpartner">
Don't have an account?
<a routerLink="/auth/registerpartneroptions">
Sign up
</a>
</div>
<div id="partnerLoginfooter"></div>
</form>
</mat-tab>
</mat-tab-group>
</div>
</div>
and i have to call with a link at the footer that look like href="/auth/login" , so far it goes to this page at the form. Has anyone any ideas to help me or to give a hint. I would really appreciate that
A similar example is example but I want to change when I click the link.
The part of the footer :
<div class="col">
<div class="footer-link-title">Partner Zone
</div>
<ul>
<li><a href="">Register an app</a></li>
<li><a href="/auth/login">Partner Login</a></li>
</ul>
</div>
....The on i need to call this second tab is at Partner Login.