TLDR Web Dev · ARTICLES & TUTORIALS
CREATE CONFIGURABLE ANGULAR GUARDS
Summary from the TLDR Web Dev newsletter
When building web applications, from time to time we have to protect routes from unauthorized access. In Angular, we can do this by using router guards. In this article, you’ll learn to create configurable Angular guards by making a guard that will check if the logged in user has a specific role and redirect accordingly.