I have a CRUD operation Page as example Manage Products in which on Create, I am not showing Create Product in Popup but showing in full page. But when I do that, I loose active menu from navigation. How do I programmatically set active menu for any page?
Set Menu Item Active
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
Hi,
Maybe you can use 'updateActiveStateFromRoute(app.menuitem.component.ts) function for setting active class programmatically. Like;
or you can change this class value
Best regards,
Merve Özçifçi
Maybe you can use 'updateActiveStateFromRoute(app.menuitem.component.ts) function for setting active class programmatically. Like;
Code: Select all
this.active = this.router.isActive(this.item.routerLink[0] || your_url(create page url), this.item.items ? false : true);
Code: Select all
'[class.active-menuitem]': '(active && !root) || (active && appMain.isSlim())'
Merve Özçifçi
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests