Is there a way to highlight the triggering button in an Angular Material menu, while also highlighting a menu item that matches a routerLink?
<button mat-button [matMenuTriggerFor]="animals">Animal index</button>
<mat-menu #animals="matMenu">
<button mat-menu-item routerLink="/vertebrates" routerLinkActive="active-menu-item">Vertebrates</button>
<button mat-menu-item routerLink="/invertebrates" routerLinkActive="active-menu-item">Invertebrates</button>
</mat-menu>
Are there any Angular directives available or CSS tricks that can achieve this effect?