title: Angular error: no provider for ActivatedRoute
body: <p>i m using angular 5 latest and i am hitting below exception</p>
  
  <pre><code>ERROR Error: StaticInjectorError(AppModule)[AppComponent -&gt; ActivatedRoute]: 
    StaticInjectorError(Platform: core)[AppComponent -&gt; ActivatedRoute]: 
      NullInjectorError: No provider for ActivatedRoute!
      at _NullInjector.get (core.js:1002)
      at resolveToken (core.js:1300)
      at tryResolveToken (core.js:1242)
      at StaticInjector.get (core.js:1110)
      at resolveToken (core.js:1300)
      at tryResolveToken (core.js:1242)
      at StaticInjector.get (core.js:1110)
      at resolveNgModuleDep (core.js:10854)
      at NgModuleRef_.get (core.js:12087)
      at resolveDep (core.js:12577)
  </code></pre>
  
  <p>the app.module.ts looks like below
  import { Routes, RouterModule }  from '@angular/router';</p>
  
  <pre><code>@NgModule({
    declarations: [
      AppComponent,
      OptyDetailsComponent,
      GlobalNavbarComponent
    ],
    imports: [
      BrowserAnimationsModule,
      BrowserModule,
      HttpModule,
      HttpClientModule,
      FlexLayoutModule,
      FormsModule,
      MatButtonModule,
      MatInputModule
      RouterModule
    ],
    entryComponents: [
    ], 
    providers: [
      DataStoreService,
      DataObjectsOscService,
      AdobeSignService,
    ],
    bootstrap: [AppComponent]
  })
  export class AppModule { }
  </code></pre>