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?
Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)
2 Answer(s)
-
0
Hi @,
Yes, you can set
featureDependencyproperty of aAppMenuItemto a function which returns true/false.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
That worked fine. I also added data['feature'] check in route guard.
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)