title: Error Can't resolve all parameters for setupRouter
body: <p>I am getting error "Can't resolve all parameters for RouteParams while creating a basic app for routing"</p>
  
  <p>Below is my app.module.ts file looks like</p>
  
  <pre><code>import { NgModule }       from '@angular/core';
  import { BrowserModule }  from '@angular/platform-browser';
  import { FormsModule }    from '@angular/forms';
  import { HttpModule }    from '@angular/http';
  
  
  import { App } from './app';
     import { routing } from './components/appRouting/app.routing';
     import { LoginComponent } from './components/login/loginComponent';
     import {SliderMenuComponent} from './components/sliderMenu/sliderMenuComponent';
  
        @NgModule({
         imports: [
           BrowserModule,
           FormsModule,
           routing,
           HttpModule
         ],
         declarations: [App,LoginComponent,SliderMenuComponent],
         providers: [],
         bootstrap: [App]
       })
       export class AppModule { }
  </code></pre>
  
  <p>My app.routing.ts looks like as below:</p>
  
  <pre><code>import { ModuleWithProviders } from '@angular/core';
  import { Routes, RouterModule } from '@angular/router';
  import {LoginComponent} from '../login/loginComponent';
  import {SliderMenuComponent} from '../sliderMenu/sliderMenuComponent';
  const appRoutes: Routes = [
    {
      path: '',
      redirectTo: '/login',
      pathMatch: 'full'
    },
    { path: 'login', component: LoginComponent },
    { path: 'slider', component: SliderMenuComponent }
      ];
  export const appRoutingProviders: any[] = [
  ];
  export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes);
  </code></pre>
  
  <p>My app.ts looks like below:</p>
  
  <p>import {Component} from '@angular/core';</p>
  
  <pre><code>@Component({
     selector: 'app',
     template : `
     &lt;h1 class="title"&gt;Component Router&lt;/h1&gt;
     &lt;nav&gt;
       &lt;a routerLink="/slider" routerLinkActive="active"&gt;Slider&lt;/a&gt;
       &lt;a routerLink="/login" routerLinkActive="active"&gt;Login&lt;/a&gt;
      &lt;/nav&gt;
      &lt;router-outlet&gt;&lt;/router-outlet&gt;
    `
  })
  export class App {
  }
  </code></pre>