I need to make a guard to check if a user has permission to the system screens.
I have an array stored in the localstorage that tells me the permissions of a user.
Example: [1,2,5], where the number is the screen id that the person can access.
I would like to know if I have been sending data from my route file to the guardian.
Something like:
{ path: 'custofixo', component: CustofixoComponent, data:{idtela: 1}, canActivate:[PermissoesTelaGuard], pathMatch: 'full' }
How can I recover this idtela from my guardian?