I have a button, that when clicked, navigates to another route. The relative code is:
<button (click)="goBack()" mat-button
aria-label="Previous Screen" role="navigation">
<mat-icon>keyboard_arrow_left</mat-icon>
</button>
And the click handler:
goBack() {
this.location.back();
}
When I click the button, the route changes, but the button gains focus. Is that what am I doing wrong?