In Angular, is there a standardized method for hiding controls when the user is not logged in? We already have the CanActivate guard which checks if a user can access a route. Would it be better to hide the route initially if the user is not logged in or lacks authorization to access the route?
For instance, let's say we have a link:
<a routerLink="topsecret">Top secret link</a>
We want this link to be hidden when the application loads if the user is not logged in. If the user is logged in and has permission to view the topsecret component, then display the link.