Route Guards

Familiarize yourself with route guards and explore the scenarios in which we can use them.

What is the route guard?

Currently, all our routes are accessible by anyone using the application. For example, a user could go to the Clients section or the Company section and see all the data that’s there, but this is something we might not want to happen in a real-world application. Say, for example, I have a set of Clients assigned to me, and you, as another member of the sales team, have a different set. I wouldn’t want you to be able to go to the application, load up the Clients section, and then see all of my Clients.

Get hands-on with 1200+ tech skills courses.