title: Sign up routerLink doesn't work [Angular]
body: <p>I have a problem signup link doesnt work I don't why script seems correct but does not working can some one give me an idea by the way the signup link work correctly in app-component</p>
  
  <pre><code>&lt;div class="col-md-12"&gt;
      &lt;div class="card card-container"&gt;
  
        &lt;form
          *ngIf="!isLoggedIn"
          name="form"
          (ngSubmit)="f.form.valid &amp;&amp; onSubmit()"
          #f="ngForm"
          novalidate
        &gt;
          &lt;div class="form-group"&gt;
            &lt;label for="username"&gt;Username&lt;/label&gt;
            &lt;input
              type="text"/&gt;
  
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
            &lt;label for="password"&gt;Password&lt;/label&gt;
            &lt;input
              type="password"/&gt;            
            &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
            &lt;button class="btn btn-primary btn-block"&gt;
              Login
            &lt;/button&gt;
          &lt;/div&gt;
          &lt;/form&gt;
        &lt;div *ngIf="!isLoggedIn"&gt;
          Create an account?&lt;a  href="/register" class="nav-link" routerLink="register"&gt;Sign Up&lt;/a&gt;
        &lt;/div&gt;  
      &lt;/div&gt;
    &lt;/div&gt;
  
  &lt;div class="container"&gt;
      &lt;router-outlet&gt;&lt;/router-outlet&gt;
    &lt;/div&gt;
  </code></pre>