Page 1 of 1

Expand menu item corresponding to the active route

Posted: 21 Oct 2021, 17:18
by josephjht@gmail.com
Based on the active route, the corresponding menu item gets a blue text color for highlighting and the content section gets the intended page.
But the parent menu item containing the route page does not expand automatically.
Is there a way to achieve this?

The overlays page is displayed on the left. But the Components menu item is not expanded and hence does not show that the Overlays item under it is actually active.

Re: Expand menu item corresponding to the active route

Posted: 25 Oct 2021, 12:26
by merve7
Hi,
This situation related to active class (

Code: Select all

'[class.active-menuitem]': 'active'
) in app.menuitem.component.ts file and we update it according to route changes. You can change it according to your condition. Also, we will try your question.

Best regards,
Merve Özçifçi