In angular2 if a route doesnt exist I want the user directed to the homepage
<p>In angular2 if a route doesnt exist I want the user directed to the homepage</p>

<p>I'm using the latest angular2 and typescript.</p>

<p>Do I add this code to the app routes file somewhere? </p>

<p><strong>This is my routes file: - how would i update this file to do that:</strong></p>

<pre><code>import { Routes } from '@angular/router';

import { HomeRoutes } from './components/home/index';
import { ContactRoutes } from './components/contact/index';

export const routes: Routes = [
...HomeRoutes,
...ContactRoutes    
];
</code></pre>

<p><strong>This is my homepage routes:</strong></p>

<pre><code>import { Route } from '@angular/router';
import { HomeComponent } from './index';

export const HomeRoutes: Route[] = [
  {
    path: '',
    component: HomeComponent
  },
  {
    path: 'home',
    component: HomeComponent
  },
  {
    path: 'homepage',
    component: HomeComponent
  },
  {
    path: '**',
    component: PageNotFoundComponent 
  }
];
</code></pre>