I have this click event written with Angular material in the app.component.html file:
<button mat-icon-button class="icon account-icon" aria-label="Icon-button with account icon" (click)="gotoLoginPage()" routerLink={{url}} routerLinkActive="active">
<mat-icon>account_circle</mat-icon>
</button>
Just in case somebody is facing my same problem, I resolved it in this way:
<button mat-icon-button class="icon account-icon" aria-label="Icon-button with account icon" (click)="gotoLoginPage()" routerLink={{url}} routerLinkActive="active">
<mat-icon>account_circle</mat-icon>
</button>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.