title: angular 8 - routerLink issue. when click on anchor tag which have routerLink property it does not do anything
body: <p>routerLink is not working in angular 8.
  I have imported router module still getting the issue.</p>
  
  <pre><code>&lt;div class="dashboard-container dashboard-container1 activedashboard text-left"&gt;
    &lt;p&gt;
      &lt;a routerLink="/Dashboard"&gt;
        &lt;i class="fa fa-home" aria-hidden="true"&gt;&lt;/i&gt; 
        Dashboard
      &lt;/a&gt;
    &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And below is the dashboard configurations</p>
  
  <pre><code> @NgModule({
    "declarations": ["AppComponent", "LoginComponent"],
    "imports": ["BrowserModule", "AppRoutingModule", "FormsModule", "ReactiveFormsModule", "RouterModule.forRoot(" [{
        "path": "",
        "component": "LoginComponent"
      }, {
        "path": "login",
        "component": "LoginComponent"
      }, {
        "path": "Dashboard",
        "component": "DashboardComponent"
      }]
      ")"
    ],
    "providers": [],
    "bootstrap": ["AppComponent"]
  })
  </code></pre>
  
  <p>here is an image for the same with formatting <code>NgModule</code> Configuration :</p>
  
  <p><img src="https://i.stack.imgur.com/YaLyu.png" alt=""></p>