The ngx-permissions directive is already built into the ng-matero's menu. You can add the permissions
field directly from the menu's configuration.
{
"menu": [
...
{
"route": "design",
"name": "design",
"type": "sub",
"icon": "color_lens",
+ "permissions": {
+ "only": [
+ "ADMIN",
+ "MANAGER"
+ ]
+ }
},
...
]
}