Angular Router & Auth Guard: How to Keep Your Routes Safe

preview_player
Показать описание
You will learn how to implement angular authorization in the routing module by watching this video.

In this section, I went over CanActivate from angular Routes, in addition to an angular guard that I named AuthGuard.

So, in short, this is explanation on how to keep your routes safe!

Thank you for watching the video, also check my channel for more videos on this topic.

Don't forget to subscribe!
Рекомендации по теме
Комментарии
Автор

2:40 it isnt recommended to use href to exchange the route to another component. As you can see in 3:15 after click, the whole page is reloaded. Use routerLink instead, do not forget to import the module to do it.

TecnoPlayCanal
Автор

I really need an explanation on how to do this Authentication with json-server.

BusterPvP
Автор

how do you get "generate angular component" etc by right clicking?

oneoneita
Автор

what extention you use to generate new component by right click

oussemabouyahia