Protecting routes is something that has to happen in any app with authentication. There will be sections of your applications that you don't want certain users to get to. We'll be looking at a simple example of how to use Angular router guards to protect an area of our site.
Full article