I have menu items that can be clicked and takes to different routes. When route is changed by clicking on item, it stays highlighted. For example, click on Home, takes to url.com/home and Home button stays highlighted. But if I go directly to url.com/home, the Home button is not highlighted.
<li nz-menu-item routerLink="/home" routerLinkActive="active">
<span title><i nz-icon type="home"></i>Home</span>
</li>
<li nz-menu-item routerLink="/about" routerLinkActive="active">
<span title><i nz-icon type="info-circle"></i>About</span>
</li>
How to change it that item is highlighted any time when the specific route is open?