title: Error: Cannot match any routes. URL Segment: 'homePage'
body: <p>I want to go to the home page after login button is clicked, but I keep getting the error :</p>
  
  <p><code>Error: Cannot match any routes. URL Segment: 'homePage'</code></p>
  
  <p>This are my routes:</p>
  
  <pre><code>{
    path: 'homePage',
    component: HomePageComponent,
    outlet:'homePage'
  },
  { 
    path: 'login',
    component:LoginComponent
  },  
  { 
    path: '',
    redirectTo: '/login',
    pathMatch: 'full'
  } 
  </code></pre>
  
  <p>And this is the button to be clicked:</p>
  
  <pre><code>&lt;button routerLink="homePage" id="login" md-button&gt;Log in&lt;/button&gt;
  &lt;router-outlet name="homePage"&gt;&lt;/router-outlet&gt;
  </code></pre>