2

I am using angular metronic admin template.

We use Angular7 metronic theme for admin template.Here I see how metronic implemented ngx-permissions for routes, but I can’t seem to figure out how to hide menu items based on current userRole.

Any advice would be appreciated.

Thank you for reading this message!!

Mohammed Sabir
  • 354
  • 1
  • 4
  • 16
  • Were you able to find a solution to this? – DevSab Jul 29 '19 at 11:31
  • nope, we didnt found any solution for that,since that theme is not supportable for multi role users – Mohammed Sabir Jul 30 '19 at 08:11
  • Actually I some how managed to dynamically bind menus based on role access. Simply add a bool property "show" with each route in menu.config.ts and then in binding the menu by enabling/disabling "show" based on the role access. Lastly, don't forget to add a *ngIf check in the aside-menu component to only render the menu item if the the show property is true. – DevSab Jul 31 '19 at 09:07

0 Answers0