Angular 7 Role Based Auth (Role Guards) / Firebase Auth

preview_player
Показать описание
In this video I will show you how to use Role Guards with the Firebase Auth Users, in order to disallow users access to certain functionality or routes in the application.
** The error I had at the end of the review is already fixed, it was on the userChanges function, I added some comments in the code so you understand what happened.
Рекомендации по теме
Комментарии
Автор

For me it work but i have a error (property 'role' does not existe on type 'string') but it show admin in the nav bar correctly

amokranechanez
Автор

i did not undrestand why userStatus is string and not any and in app component.html an error raised userStatus has not propertie role also current user in auth guard when i want to see its' value it 's undifined can you please help me figure out what's the problem

sirinemhedhbi
Автор

5 star. (How did you create that SVG image?)

cguider
Автор

hi, just wanted to ask. Why is there such an error in your code, like this:

Property 'userStatus' is used before its initialization.

I was wondering if you whether know how to fix this or not. If you could help, that would be great

adibzikri
Автор

how can i use role guards with laravel auth in angular

maraiiamina
Автор

Muy buen vídeo, era justo lo que andaba buscando.

samblex
Автор

Thanks for this video, but I have a problem, the document ID is different from the ID inside the document, how to fix it?

hieu
Автор

Hallo I need please beginn of tutorial

diraneserges