0
ajayak created
Hi,
Is there any way to authorize angular routes as we do for permissions?
For eg:
new AppMenuItem('OrganizationUnits', 'Pages.Administration.OrganizationUnits', 'flaticon-map', '/app/admin/organization-units'),
and
{ path: 'users', component: UsersComponent, data: { permission: 'Pages.Administration.Users' } },
Can I do this check based on edition feature?
2 Answer(s)
-
0
Hi @,
Yes, you can set
featureDependency
property of aAppMenuItem
to a function which returns true/false. -
0
That worked fine. I also added data['feature'] check in route guard.
Have an answer to this question?
Log in
and write your answer.