In Angular2 how do I redirect to homepage if route doesnt exist
<p>How to redirect to homepage if route doesnt exist. Eg /test would redirect to home page.</p>

<p>*I know I'm using an older version of router but currently I do not have the time to upgrade and need a solution with this version.</p>

<p><strong>This is my version: "@angular/router": "2.0.0-rc.1"</strong></p>

<p><strong>Example of my current routes in my app.ts file:</strong></p>

<pre><code>@Routes([
  { path: '/', component: Home},
  { path: '/home', component: Home, useAsDefault: true },
  { path: '/login', component: Login },      
  { path:'/**', redirectTo: ['Login']}
])
</code></pre>

<p>I'm using angular2 with typescript.</p>

<p>I this console error saying: <strong>Error: Uncaught (in promise): Cannot match any routes.</strong></p>

<p>My bootstrap code:</p>

<pre><code>bootstrap(AppComponent, [
    ROUTER_PROVIDERS,
    HTTP_BINDINGS,
    provide(APP_BASE_HREF, { useValue: '&lt;%= APP_BASE %&gt;' }),
    BootFlatDatePicker,
    ANGULAR2_GOOGLE_MAPS_PROVIDERS,
    Environment,
    SocialService,
    AuthService,
    UserService,
    OrganisationService,
    NotificationService,
    ApplicationService,
    JobService,
    MessageService,
    EmailService
]);
</code></pre>