title: Angular redirect to dashboard if user is logged in
body: <p>I am using Angular v6, I have implement redirect from dashboard to login page if user is not logged in.
  <br>
  I'm confused between the two options: </p>
  
  <ol>
  <li>Add a login guard file to check login status and redirect to dashboard</li>
  <li>Detect route changing event, check login status here and redirect
  <br></li>
  </ol>
  
  <p>What is the better solution for this case ?</p>