SyntaxFix
Write A Post
Hire A Developer
Questions
Having the router link on the button seems to work fine for me:
<button class="nav-link" routerLink="/" (click)="hideMenu()"> <i class="fa fa-home"></i> <span>Home</span> </button>