When building web application, from time to time we have to protect routes from unauthorized access. In Angular, we can do this by using router guards. This is not an intro to Angular guards, so if you are not familiar with them, you can read more about them in the…