Instantiates the role guard class.
A service that provides navigation among views and URL manipulation capabilities.
Returns whether navigation to a specific route is acceptable. Checks if the user has the required role to access the route.
Contains the information about a route associated with a component loaded in an outlet at a particular moment in time. ActivatedRouteSnapshot can also be used to traverse the router state tree.
Represents the state of the router at a moment in time.
true - If the user's role matches with accepted roles.
Generated using TypeDoc
Role guard implementation. Dictates access to routes depending on the user's role.
CanActivate