Angular Guards | Angular Auth Guard | Angular Canactivate

preview_player
Показать описание
Learn Angular guards by implementing Angular auth guard. This is the most popular way to protect your pages for unathorized users with Angular canactivate method.

FOLLOW ME

REFERENCES
Рекомендации по теме
Комментарии
Автор

Thank you so much for this, I have been on the struggle bus.

txjzidn
Автор

damn, you made it look easy but this is hard to undertand. Thanks bro

lucasdamasceno
Автор

I like your content but class-based guards (and resolvers) are deprecated from Angular 15.2. Hoped to see how you implement functional guards, but maybe that's a good topic for another video and I can imagine many people will search specifically for this from now on :)

mikhailratner
Автор

Awesome video. Could you please also provide a video about the future of angular comparing with react

berkepalamutcu
Автор

Hi and thanks. What about function-style guards?

gkarapeev
Автор

i only get currentUser value undefined in canActivate Function . const authService = inject(AuthService); export const hasRoleGuard: CanActivateFn = (route, state) => { return ) etc ....

ThanHtutZaw
Автор

What about is you want to guard from the server side?

oriollpz
Автор

One question: there are many react clones of popular websites tutorial on youtube, can we code a clone and add to our public github repository ? I don't want to use it for any business or sell it to somebody. I want to use it just to get job, that shows my skills

waleedsharif