title: I'm getting "Property 'router' does not exist on type 'SigninComponent'." while using this.router.navigate(['/dashboard']); in angular 4
body: <p>I have import : </p>
  
  <pre><code>import { RouterModule, Routes} from '@angular/router';
  </code></pre>
  
  <p>and then I have used below line in my function inside component</p>
  
  <pre><code>this.router.navigate(['/dashboard']);
  </code></pre>