Route Guards
Last updated
What is Route Guards?
Use route guards to prevent users from navigating to parts of an application without authorization.
Angular route guards are interfaces provided by Angular that, when implemented, allow us to control the accessibility of a route based on conditions provided in function implementation of that interface.
Some types of angular guards are CanActivate, CanActivateChild, CanDeactivate, CanMatch and Resolve.
Free resources to learn Route Guards
- Official docsPreventing Unauthorized Access
- Official docsResolve
More in stage 12: Forms
Route Guards: common questions
Can I learn Route Guards in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Route Guards in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Route Guards tutorial for beginners?
It is lesson 74 of 158 in the free Angular roadmap, in stage 12, Forms. If you are new to Angular, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.