I am using ejs-listview in an Angular application as a list of menu items. When I select an item on the listview it renders the component as per the route. When I select an item, there is a .e-active class added to the list item, which I can use to apply styles. But, when I click the back button on the browser the list item active doesn't update as per the route. It's still active on the same item.
How can I bind the .e-active class to the routerLink, so that the item selected is based on the route?
Here is a stackblitz to explain this. In the app, I am trying to apply the routerLinkActive to the list-item but it applies it to the child of <li>. I want the routerLinkActive on the <li> element itself.
https://stackblitz.com/edit/angular-sezclv-fdnt5c?file=src%2Fapp%2Fapp.component.html