title: Hide Angular navigation controls if user is not logged in?
body: <p>Does Angular have a standardized way of hiding controls if the user is not logged in.  We have the <code>CanActivate</code> guard which checks to see whether a user can visit a route.  If we hide the route to start with if the user is not logged in or not authorized to access the route?</p>
  
  <p>For example suppose we have a link:</p>
  
  <pre><code> &lt;a routerLink="topsecret"&gt;Top secret link&lt;/a&gt;
  </code></pre>
  
  <p>We would like to hide this link when the application is rendered, if the user is not logged in.  If the user is logged in and is authorized to proceed to view the <code>topsecret</code> component then render the link.</p>